Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Navigation / RequestNavigateEventArgs.cs / 1305600 / RequestNavigateEventArgs.cs
//---------------------------------------------------------------------------- // File: RequestNavigateEventArgs.cs // // Copyright (C) 2001 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Net; using System.Windows; using MS.Internal.Utility; namespace System.Windows.Navigation { ////// EventArgs for RequestNavigate /// ///public class RequestNavigateEventArgs : RoutedEventArgs { Uri _uri; string _target; /// /// Default constructor /// ///protected RequestNavigateEventArgs() : base() { base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent; } /// /// Constructor /// /// Uri to navigate /// Name of the target navigator ///public RequestNavigateEventArgs(Uri uri, string target) : base() { _uri = uri; _target = target; base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent; } /// /// Uri to navigate /// ////// /// Don't add a setter to this property since it could open up for spoofing attacks. /// public Uri Uri { get{return _uri;} } ////// Target window or frame to perform navigation /// ///public string Target { get{return _target;} } /// /// /// /// /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { if (RoutedEvent == null) { throw new InvalidOperationException(SR.Get(SRID.RequestNavigateEventMustHaveRoutedEvent)); } RequestNavigateEventHandler handler = (RequestNavigateEventHandler)genericHandler; handler(genericTarget, this); } } ////// Delegate that handles RequestNavigate event. /// ///public delegate void RequestNavigateEventHandler(object sender, RequestNavigateEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsPropertyValueCollection.cs
- ManagementDateTime.cs
- DetailsViewRowCollection.cs
- OutputCacheModule.cs
- C14NUtil.cs
- DATA_BLOB.cs
- HttpListenerRequestTraceRecord.cs
- DLinqColumnProvider.cs
- DataSysAttribute.cs
- TrustManager.cs
- SwitchElementsCollection.cs
- ToolStripDropDownMenu.cs
- X509Certificate2Collection.cs
- ResourceCategoryAttribute.cs
- mansign.cs
- DecimalAnimation.cs
- PerformanceCounterLib.cs
- MsmqChannelFactory.cs
- KeyPressEvent.cs
- CorrelationManager.cs
- OperatingSystem.cs
- FillRuleValidation.cs
- documentsequencetextcontainer.cs
- DataGridViewRowsAddedEventArgs.cs
- InvalidProgramException.cs
- CodeDirectoryCompiler.cs
- SerializationEventsCache.cs
- ProgressBarHighlightConverter.cs
- BindingEditor.xaml.cs
- SQLBytesStorage.cs
- BaseContextMenu.cs
- MulticastNotSupportedException.cs
- Soap11ServerProtocol.cs
- RecordConverter.cs
- DisplayClaim.cs
- SqlUserDefinedTypeAttribute.cs
- List.cs
- EpmContentSerializerBase.cs
- FormsAuthenticationConfiguration.cs
- ValidationPropertyAttribute.cs
- TcpChannelHelper.cs
- TextTreeRootTextBlock.cs
- MetadataHelper.cs
- BuildProviderUtils.cs
- DataObject.cs
- DragStartedEventArgs.cs
- ModifierKeysConverter.cs
- SafeRegistryKey.cs
- BookmarkInfo.cs
- FrameworkObject.cs
- GlobalEventManager.cs
- NonBatchDirectoryCompiler.cs
- WebPartTransformer.cs
- SqlFunctions.cs
- IPCCacheManager.cs
- ResourceLoader.cs
- SmiRequestExecutor.cs
- DoubleAnimationClockResource.cs
- XmlSchemaSimpleTypeRestriction.cs
- SqlXml.cs
- SoapAttributes.cs
- RectangleHotSpot.cs
- SqlOuterApplyReducer.cs
- BamlReader.cs
- CustomCredentialPolicy.cs
- ReliableSessionBindingElementImporter.cs
- XmlNamespaceMapping.cs
- BypassElement.cs
- QilXmlReader.cs
- CalendarButton.cs
- StorageBasedPackageProperties.cs
- ReliableReplySessionChannel.cs
- ArraySortHelper.cs
- SoapAttributes.cs
- AssociationTypeEmitter.cs
- UIElement3D.cs
- XmlFormatExtensionPrefixAttribute.cs
- ValidatingCollection.cs
- ParseNumbers.cs
- QilInvokeLateBound.cs
- PriorityItem.cs
- Parameter.cs
- TagNameToTypeMapper.cs
- Slider.cs
- MaterialGroup.cs
- ListViewGroupConverter.cs
- Application.cs
- MessageHeaderDescription.cs
- XmlSortKey.cs
- StructuredType.cs
- SchemaContext.cs
- ServiceDefaults.cs
- _HelperAsyncResults.cs
- IntSecurity.cs
- DSACryptoServiceProvider.cs
- PermissionSet.cs
- PaintValueEventArgs.cs
- NameObjectCollectionBase.cs
- ProfilePropertySettingsCollection.cs
- PerformanceCounterManager.cs