Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Navigation / RequestNavigateEventArgs.cs / 1 / 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. //---------------------------------------------------------------------------- // 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
- ManifestBasedResourceGroveler.cs
- ModelItemDictionaryImpl.cs
- ScrollItemProviderWrapper.cs
- Stroke.cs
- FormatConvertedBitmap.cs
- FontClient.cs
- SqlLiftIndependentRowExpressions.cs
- XmlSchemaAttributeGroupRef.cs
- ObjectIDGenerator.cs
- ProgressBarAutomationPeer.cs
- DoubleLinkList.cs
- BitmapMetadataBlob.cs
- SecurityRuntime.cs
- TextElementCollection.cs
- Animatable.cs
- PropertyTab.cs
- BinaryCommonClasses.cs
- PerformanceCounterPermission.cs
- SmtpNegotiateAuthenticationModule.cs
- NonSerializedAttribute.cs
- DeviceFiltersSection.cs
- RowUpdatedEventArgs.cs
- DataObjectFieldAttribute.cs
- AttributeProviderAttribute.cs
- MailDefinitionBodyFileNameEditor.cs
- PreviewKeyDownEventArgs.cs
- ExtensionDataReader.cs
- TypedRowGenerator.cs
- PerformanceCounterPermissionEntry.cs
- SimpleWorkerRequest.cs
- MergablePropertyAttribute.cs
- SecureConversationVersion.cs
- QueueProcessor.cs
- FullTextBreakpoint.cs
- MessageAction.cs
- XslAst.cs
- CustomValidator.cs
- WebBrowserProgressChangedEventHandler.cs
- Signature.cs
- TemplateXamlTreeBuilder.cs
- ObjectListShowCommandsEventArgs.cs
- ResourceIDHelper.cs
- DescendantQuery.cs
- XmlSchemaSimpleContent.cs
- CompilationLock.cs
- SafeFindHandle.cs
- HierarchicalDataBoundControlAdapter.cs
- CompatibleIComparer.cs
- NodeInfo.cs
- ContentTextAutomationPeer.cs
- UserPreferenceChangedEventArgs.cs
- OutputWindow.cs
- TypeResolvingOptions.cs
- PtsCache.cs
- QueryCursorEventArgs.cs
- AtomServiceDocumentSerializer.cs
- SqlNodeAnnotation.cs
- Vector3DCollection.cs
- ClientFormsIdentity.cs
- ModuleBuilder.cs
- Helper.cs
- Literal.cs
- SystemFonts.cs
- WindowsImpersonationContext.cs
- MulticastOption.cs
- TagMapInfo.cs
- GridViewHeaderRowPresenter.cs
- SR.cs
- TreeViewBindingsEditorForm.cs
- SystemIPv6InterfaceProperties.cs
- Certificate.cs
- EventLog.cs
- GenericPrincipal.cs
- ExtensionWindowHeader.cs
- SystemColors.cs
- ping.cs
- HtmlSelect.cs
- QueryOpeningEnumerator.cs
- CategoryValueConverter.cs
- Gdiplus.cs
- datacache.cs
- CapiNative.cs
- DbModificationCommandTree.cs
- PackagingUtilities.cs
- CheckedPointers.cs
- BmpBitmapDecoder.cs
- BindableTemplateBuilder.cs
- ListViewDataItem.cs
- HttpModuleCollection.cs
- XmlDocument.cs
- metadatamappinghashervisitor.cs
- MutexSecurity.cs
- ContentPlaceHolder.cs
- UIAgentAsyncBeginRequest.cs
- ToolboxBitmapAttribute.cs
- AxHostDesigner.cs
- AtomPub10CategoriesDocumentFormatter.cs
- XamlPoint3DCollectionSerializer.cs
- AuthorizationRuleCollection.cs
- InternalDuplexBindingElement.cs