Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 /// ///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
- FactoryGenerator.cs
- SponsorHelper.cs
- ShaderEffect.cs
- ContentPresenter.cs
- NullableLongSumAggregationOperator.cs
- TrustLevelCollection.cs
- Window.cs
- EnumMemberAttribute.cs
- HandlerBase.cs
- BinaryFormatter.cs
- sqlnorm.cs
- WmlPanelAdapter.cs
- Models.cs
- TypeExtensionConverter.cs
- XmlWrappingWriter.cs
- RootBrowserWindow.cs
- ControlIdConverter.cs
- WebConfigurationHost.cs
- PathNode.cs
- IItemContainerGenerator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- UiaCoreProviderApi.cs
- ListViewItem.cs
- MimeBasePart.cs
- PostBackOptions.cs
- XmlAttributeCollection.cs
- _StreamFramer.cs
- CaseInsensitiveHashCodeProvider.cs
- SafeCoTaskMem.cs
- ConfigurationStrings.cs
- XmlComment.cs
- Encoding.cs
- OperationInvokerTrace.cs
- MetaModel.cs
- StrongNameMembershipCondition.cs
- ApplicationHost.cs
- StyleSelector.cs
- QilStrConcat.cs
- ByteKeyFrameCollection.cs
- FileSystemInfo.cs
- ColumnMapVisitor.cs
- InputLangChangeEvent.cs
- StylusDownEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- TCPClient.cs
- ResXResourceSet.cs
- DataKey.cs
- SaveLedgerEntryRequest.cs
- DialogDivider.cs
- RuleProcessor.cs
- TraceRecord.cs
- latinshape.cs
- RSAPKCS1SignatureDeformatter.cs
- ViewCellRelation.cs
- CalendarDateRange.cs
- GroupLabel.cs
- PerfCounters.cs
- CodeGroup.cs
- DataServiceRequestArgs.cs
- SafeRegistryKey.cs
- TextMessageEncodingElement.cs
- ErrorStyle.cs
- UrlPropertyAttribute.cs
- ISAPIApplicationHost.cs
- CriticalHandle.cs
- FrugalMap.cs
- SQLInt16Storage.cs
- ComponentDesigner.cs
- XsltCompileContext.cs
- X500Name.cs
- CompilationUtil.cs
- ProxyElement.cs
- SqlInfoMessageEvent.cs
- FormatConvertedBitmap.cs
- sqlser.cs
- FilterableAttribute.cs
- CommandDesigner.cs
- DelegatingHeader.cs
- InheritanceAttribute.cs
- VarRemapper.cs
- ConnectionManagementSection.cs
- SnapLine.cs
- ElementsClipboardData.cs
- FixedSOMLineRanges.cs
- MissingManifestResourceException.cs
- TransformConverter.cs
- AdRotator.cs
- GridViewRowCollection.cs
- XmlSchemaObject.cs
- UpdateException.cs
- FormatSettings.cs
- CacheAxisQuery.cs
- MetadataPropertyAttribute.cs
- ApplicationSecurityInfo.cs
- AdapterDictionary.cs
- SqlNotificationEventArgs.cs
- ZipIOLocalFileBlock.cs
- CommonDialog.cs
- ImageCodecInfo.cs
- WorkflowApplicationIdleEventArgs.cs