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
- ClientSettingsStore.cs
- StylusDownEventArgs.cs
- ParserStreamGeometryContext.cs
- WhitespaceReader.cs
- Schema.cs
- SqlRewriteScalarSubqueries.cs
- GridViewEditEventArgs.cs
- XmlILConstructAnalyzer.cs
- JournalNavigationScope.cs
- IndicFontClient.cs
- ReferenceCountedObject.cs
- UnsafeNativeMethodsPenimc.cs
- WindowsFormsHelpers.cs
- ManagedCodeMarkers.cs
- ReferenceService.cs
- PointLight.cs
- ReadOnlyTernaryTree.cs
- SecurityDescriptor.cs
- RoutedUICommand.cs
- DataGridSortCommandEventArgs.cs
- Metadata.cs
- UIElement3DAutomationPeer.cs
- DispatchChannelSink.cs
- SHA256Managed.cs
- TreeIterator.cs
- NameValueCollection.cs
- ScrollViewer.cs
- JavascriptXmlWriterWrapper.cs
- EditableTreeList.cs
- ManagementEventArgs.cs
- ExecutionContext.cs
- DataBindingCollection.cs
- RootContext.cs
- ReadOnlyAttribute.cs
- ServiceRouteHandler.cs
- CrossSiteScriptingValidation.cs
- serverconfig.cs
- NavigationPropertyEmitter.cs
- ClickablePoint.cs
- WeakEventTable.cs
- PublisherMembershipCondition.cs
- QilPatternFactory.cs
- RealProxy.cs
- PropertyValueChangedEvent.cs
- HttpCapabilitiesEvaluator.cs
- UrlMapping.cs
- ToolStripKeyboardHandlingService.cs
- BulletDecorator.cs
- ExpressionVisitor.cs
- Group.cs
- FontStyles.cs
- ClientSideProviderDescription.cs
- SHA1Cng.cs
- LOSFormatter.cs
- BaseValidator.cs
- CallbackValidator.cs
- SQLMoney.cs
- XmlValidatingReader.cs
- OrderedDictionaryStateHelper.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- StaticSiteMapProvider.cs
- AsyncDataRequest.cs
- MethodExecutor.cs
- PathSegmentCollection.cs
- WebEncodingValidator.cs
- OpCopier.cs
- HashMembershipCondition.cs
- EdmTypeAttribute.cs
- DbSourceParameterCollection.cs
- FixedStringLookup.cs
- ExtendedPropertyInfo.cs
- TextRangeEditLists.cs
- XmlMtomReader.cs
- DeploymentSection.cs
- PointCollection.cs
- SafeThemeHandle.cs
- DataTableClearEvent.cs
- NativeMethods.cs
- AncestorChangedEventArgs.cs
- CustomErrorsSection.cs
- Filter.cs
- SoapBinding.cs
- COM2ExtendedBrowsingHandler.cs
- Pens.cs
- DataAccessor.cs
- XmlSchemaImport.cs
- Exceptions.cs
- ActiveXContainer.cs
- SendActivityDesignerTheme.cs
- ExceptionHelpers.cs
- DesignerUtils.cs
- DefaultValueConverter.cs
- SelectorItemAutomationPeer.cs
- ConfigXmlCDataSection.cs
- AVElementHelper.cs
- RawStylusInputReport.cs
- Image.cs
- Mappings.cs
- UTF7Encoding.cs
- SoapTypeAttribute.cs