Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OdbcCommandBuilder.cs
- SqlDataSourceEnumerator.cs
- UICuesEvent.cs
- unsafenativemethodstextservices.cs
- ServiceDescriptions.cs
- XmlSchemaFacet.cs
- OleDbParameter.cs
- XPathMultyIterator.cs
- SmtpFailedRecipientException.cs
- GeometryModel3D.cs
- XmlCodeExporter.cs
- ConsoleCancelEventArgs.cs
- SqlProvider.cs
- BatchWriter.cs
- HtmlInputControl.cs
- ProcessModule.cs
- SoapClientProtocol.cs
- CompiledAction.cs
- XmlSchemaDocumentation.cs
- MessageDesigner.cs
- TextElementCollection.cs
- CharConverter.cs
- MailMessage.cs
- CodeDomConfigurationHandler.cs
- DataBoundControlAdapter.cs
- StringUtil.cs
- _LocalDataStoreMgr.cs
- WebPartPersonalization.cs
- Pkcs9Attribute.cs
- JsonDeserializer.cs
- ObjectTag.cs
- CodeSnippetStatement.cs
- VisualBrush.cs
- ItemsPanelTemplate.cs
- CompleteWizardStep.cs
- StorageMappingFragment.cs
- CopyAction.cs
- CopyOfAction.cs
- RuntimeTrackingProfile.cs
- RecommendedAsConfigurableAttribute.cs
- ScaleTransform.cs
- ClientSettingsSection.cs
- AdCreatedEventArgs.cs
- XmlWriter.cs
- CatchBlock.cs
- WSIdentityFaultException.cs
- ClientUtils.cs
- ComponentRenameEvent.cs
- SubMenuStyleCollectionEditor.cs
- StringFunctions.cs
- ApplicationProxyInternal.cs
- CombinedHttpChannel.cs
- JoinCqlBlock.cs
- SystemException.cs
- WindowsProgressbar.cs
- ServerIdentity.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MouseBinding.cs
- OverflowException.cs
- PerfCounterSection.cs
- DataControlLinkButton.cs
- CircleHotSpot.cs
- WorkflowFileItem.cs
- CodeSubDirectoriesCollection.cs
- _PooledStream.cs
- PathFigureCollection.cs
- ParagraphResult.cs
- DataGridViewCellConverter.cs
- Component.cs
- TerminateDesigner.cs
- HtmlTextArea.cs
- Misc.cs
- TypefaceMap.cs
- EmptyEnumerator.cs
- TableItemStyle.cs
- DrawListViewItemEventArgs.cs
- ByteAnimation.cs
- ScrollItemProviderWrapper.cs
- UnionExpr.cs
- PageThemeBuildProvider.cs
- PageCatalogPart.cs
- DropTarget.cs
- AlphabeticalEnumConverter.cs
- VoiceSynthesis.cs
- RichTextBoxConstants.cs
- BamlWriter.cs
- GCHandleCookieTable.cs
- RegexReplacement.cs
- IisTraceListener.cs
- CaseKeyBox.xaml.cs
- HandlerFactoryWrapper.cs
- DataTablePropertyDescriptor.cs
- CorrelationService.cs
- SchemaLookupTable.cs
- CapiHashAlgorithm.cs
- CodeRemoveEventStatement.cs
- ExecutionScope.cs
- RsaSecurityTokenAuthenticator.cs
- ScriptControl.cs
- ListViewItemMouseHoverEvent.cs