Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Navigation / NavigationEventArgs.cs / 1305600 / NavigationEventArgs.cs
//-------------------------------------------------------------------------------------------- // File: NavigationEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when a navigation is completed. // This event is fired on INavigator and refired on the Application // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //------------------------------------------------------------------------------------------- using System.Net; namespace System.Windows.Navigation { ////// Event args for non-cancelable navigation events - Navigated, LoadCompleted, NavigationStopped /// The NavigationEventArgs contain the uri or root element of the content being navigated to, /// and a IsNavigationInitiator property that indicates whether this is a new navigation initiated /// by this navigator, or whether this navigation is being propagated down from a higher level navigation /// taking place in a containing window or frame. /// The developer should check the IsNavigationInitiator property on the NavigationEventArgs to /// determine whether to spin the globe. /// public class NavigationEventArgs : EventArgs { // Internal constructor // URI of the content navigated to. // Root of the element tree being navigated to. // Indicates whether this navigator is // initiating the navigation or whether a parent internal NavigationEventArgs(Uri uri, Object content, Object extraData, WebResponse response, object Navigator, bool isNavigationInitiator) { _uri = uri; _content = content; _extraData = extraData; _webResponse = response; _isNavigationInitiator = isNavigationInitiator; _navigator = Navigator; } ////// URI of the markup page navigated to. /// public Uri Uri { get { return _uri; } } ////// Root of the element tree navigated to. /// Note: Only one of the Content or Uri property will be set, depending on whether the /// navigation was to a Uri or an existing element tree. /// public Object Content { get { return _content; } } ////// Indicates whether this navigator is initiating the navigation or whether a parent /// navigator is being navigated (e.g., the current navigator is a frame /// inside a page thats being navigated to inside a parent navigator). A developer /// can use this property to determine whether to spin the globe on a Navigating event or /// to stop spinning the globe on a LoadCompleted event. /// If this property is False, the navigators parent navigator is also navigating and /// the globe is already spinning. /// If this property is True, the navigation was initiated inside the current frame and /// the developer should spin the globe (or stop spinning the globe, depending on /// which event is being handled.) /// public bool IsNavigationInitiator { get { return _isNavigationInitiator; } } ////// Exposes extra data object which was optionally passed as a parameter to Navigate. /// public Object ExtraData { get { return _extraData; } } ////// Exposes the web response to allow access to HTTP headers and other properties. /// public WebResponse WebResponse { get { return _webResponse; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } private Uri _uri; private Object _content; private Object _extraData; private WebResponse _webResponse; private bool _isNavigationInitiator; object _navigator; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------------- // File: NavigationEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when a navigation is completed. // This event is fired on INavigator and refired on the Application // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //------------------------------------------------------------------------------------------- using System.Net; namespace System.Windows.Navigation { ////// Event args for non-cancelable navigation events - Navigated, LoadCompleted, NavigationStopped /// The NavigationEventArgs contain the uri or root element of the content being navigated to, /// and a IsNavigationInitiator property that indicates whether this is a new navigation initiated /// by this navigator, or whether this navigation is being propagated down from a higher level navigation /// taking place in a containing window or frame. /// The developer should check the IsNavigationInitiator property on the NavigationEventArgs to /// determine whether to spin the globe. /// public class NavigationEventArgs : EventArgs { // Internal constructor // URI of the content navigated to. // Root of the element tree being navigated to. // Indicates whether this navigator is // initiating the navigation or whether a parent internal NavigationEventArgs(Uri uri, Object content, Object extraData, WebResponse response, object Navigator, bool isNavigationInitiator) { _uri = uri; _content = content; _extraData = extraData; _webResponse = response; _isNavigationInitiator = isNavigationInitiator; _navigator = Navigator; } ////// URI of the markup page navigated to. /// public Uri Uri { get { return _uri; } } ////// Root of the element tree navigated to. /// Note: Only one of the Content or Uri property will be set, depending on whether the /// navigation was to a Uri or an existing element tree. /// public Object Content { get { return _content; } } ////// Indicates whether this navigator is initiating the navigation or whether a parent /// navigator is being navigated (e.g., the current navigator is a frame /// inside a page thats being navigated to inside a parent navigator). A developer /// can use this property to determine whether to spin the globe on a Navigating event or /// to stop spinning the globe on a LoadCompleted event. /// If this property is False, the navigators parent navigator is also navigating and /// the globe is already spinning. /// If this property is True, the navigation was initiated inside the current frame and /// the developer should spin the globe (or stop spinning the globe, depending on /// which event is being handled.) /// public bool IsNavigationInitiator { get { return _isNavigationInitiator; } } ////// Exposes extra data object which was optionally passed as a parameter to Navigate. /// public Object ExtraData { get { return _extraData; } } ////// Exposes the web response to allow access to HTTP headers and other properties. /// public WebResponse WebResponse { get { return _webResponse; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } private Uri _uri; private Object _content; private Object _extraData; private WebResponse _webResponse; private bool _isNavigationInitiator; object _navigator; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartDisplayMode.cs
- Win32.cs
- Certificate.cs
- FontNamesConverter.cs
- ModelPropertyImpl.cs
- ResourceExpressionEditorSheet.cs
- FrameworkObject.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- MultipartIdentifier.cs
- FilterEventArgs.cs
- InternalReceiveMessage.cs
- ExtendedProperty.cs
- SchemaInfo.cs
- RegexCaptureCollection.cs
- FormatterConverter.cs
- SurrogateEncoder.cs
- AssemblyHash.cs
- StatusBarPanel.cs
- MergablePropertyAttribute.cs
- _DomainName.cs
- PointHitTestResult.cs
- Stylesheet.cs
- TrustManagerPromptUI.cs
- SchemaMapping.cs
- DataGridViewRowsAddedEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataColumnMapping.cs
- InputManager.cs
- LineInfo.cs
- EntitySetDataBindingList.cs
- TrackBar.cs
- AutomationProperty.cs
- StrokeCollectionConverter.cs
- DataSetUtil.cs
- XmlUrlResolver.cs
- TreeIterator.cs
- WindowsGraphicsCacheManager.cs
- FontCollection.cs
- PauseStoryboard.cs
- ItemPager.cs
- TreeNodeEventArgs.cs
- BamlLocalizer.cs
- FilterException.cs
- Visual3D.cs
- ThreadTrace.cs
- RawStylusActions.cs
- DataTableMappingCollection.cs
- DataRecord.cs
- MiniMapControl.xaml.cs
- NativeCppClassAttribute.cs
- CodeTypeParameter.cs
- ChangeProcessor.cs
- DirectoryObjectSecurity.cs
- InputLangChangeEvent.cs
- ElementProxy.cs
- BlockCollection.cs
- XPathNodePointer.cs
- WebHttpDispatchOperationSelector.cs
- Win32Interop.cs
- Transform.cs
- EnumDataContract.cs
- NamedPipeConnectionPoolSettings.cs
- GridProviderWrapper.cs
- TableParagraph.cs
- MenuItemStyle.cs
- GestureRecognizer.cs
- xml.cs
- MethodBody.cs
- PageThemeCodeDomTreeGenerator.cs
- StylusPointCollection.cs
- IISUnsafeMethods.cs
- BitmapSourceSafeMILHandle.cs
- MenuCommands.cs
- CreateUserWizardAutoFormat.cs
- StorageSetMapping.cs
- TemplateBindingExpression.cs
- TagNameToTypeMapper.cs
- PropertyDescriptorComparer.cs
- wgx_sdk_version.cs
- ApplicationHost.cs
- BitmapCacheBrush.cs
- WindowsAltTab.cs
- MSAANativeProvider.cs
- TextProviderWrapper.cs
- DbMetaDataFactory.cs
- ObjectListFieldsPage.cs
- DesignTimeTemplateParser.cs
- PriorityQueue.cs
- ContextMenuStripActionList.cs
- ContractUtils.cs
- ParseElementCollection.cs
- AttributeXamlType.cs
- QuaternionConverter.cs
- Crc32.cs
- ProjectionRewriter.cs
- WebPartHelpVerb.cs
- ControlBuilder.cs
- ChtmlCommandAdapter.cs
- TailPinnedEventArgs.cs
- WindowInteropHelper.cs