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
- ConnectionStringsExpressionBuilder.cs
- PageContentAsyncResult.cs
- ToolStripLabel.cs
- HtmlHead.cs
- Clock.cs
- QuerySettings.cs
- SecurityCriticalDataForSet.cs
- PkcsUtils.cs
- PolicyDesigner.cs
- MetadataUtil.cs
- RootCodeDomSerializer.cs
- List.cs
- WinEventWrap.cs
- XmlSchemaAnnotated.cs
- TransformerConfigurationWizardBase.cs
- TagMapInfo.cs
- ProtocolsConfigurationEntry.cs
- LogEntryHeaderDeserializer.cs
- AccessViolationException.cs
- RegexCharClass.cs
- ByteConverter.cs
- XmlSchemaValidationException.cs
- FakeModelItemImpl.cs
- TableColumn.cs
- NumberSubstitution.cs
- Win32NamedPipes.cs
- SizeConverter.cs
- TreeNodeSelectionProcessor.cs
- CodeConstructor.cs
- WsatConfiguration.cs
- DataGridViewCellCancelEventArgs.cs
- TextCollapsingProperties.cs
- ParagraphVisual.cs
- ColumnWidthChangedEvent.cs
- XmlSerializationGeneratedCode.cs
- DataColumn.cs
- DefaultValueTypeConverter.cs
- EntityWithKeyStrategy.cs
- TextEditorContextMenu.cs
- EntityUtil.cs
- DataGridCell.cs
- securitycriticaldataformultiplegetandset.cs
- EdmTypeAttribute.cs
- XmlCharCheckingWriter.cs
- DesignerDataConnection.cs
- MissingSatelliteAssemblyException.cs
- ResourceProperty.cs
- GlyphTypeface.cs
- DataTablePropertyDescriptor.cs
- SafeEventLogWriteHandle.cs
- PageContentAsyncResult.cs
- ClientScriptManager.cs
- EmptyStringExpandableObjectConverter.cs
- AttachedPropertyBrowsableAttribute.cs
- FocusChangedEventArgs.cs
- typedescriptorpermissionattribute.cs
- HtmlMeta.cs
- XmlWrappingReader.cs
- RangeEnumerable.cs
- ErrorStyle.cs
- ISAPIRuntime.cs
- SpellerHighlightLayer.cs
- TreeView.cs
- StyleTypedPropertyAttribute.cs
- TextDocumentView.cs
- DistributedTransactionPermission.cs
- WasHostedComPlusFactory.cs
- FontSourceCollection.cs
- FileDataSourceCache.cs
- GenericEnumConverter.cs
- DashStyle.cs
- TypeConverters.cs
- SmtpNetworkElement.cs
- ComboBox.cs
- ReachFixedDocumentSerializer.cs
- RightNameExpirationInfoPair.cs
- Menu.cs
- ColorContext.cs
- CountAggregationOperator.cs
- FolderLevelBuildProvider.cs
- ExpressionEditorSheet.cs
- NativeRightsManagementAPIsStructures.cs
- SingleStorage.cs
- WebContentFormatHelper.cs
- ListControl.cs
- XmlSchemaImporter.cs
- Timeline.cs
- Metafile.cs
- DisableDpiAwarenessAttribute.cs
- TableLayoutStyleCollection.cs
- AddInContractAttribute.cs
- SmiRecordBuffer.cs
- ComPlusDiagnosticTraceRecords.cs
- SqlBuffer.cs
- DataGridViewDataErrorEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- WindowsRebar.cs
- TransformPattern.cs
- Thread.cs
- LiteralLink.cs