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 / NavigationEventArgs.cs / 1 / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConsoleKeyInfo.cs
- Transform3DCollection.cs
- JsonEnumDataContract.cs
- Bits.cs
- X500Name.cs
- WindowsListViewScroll.cs
- MarshalByValueComponent.cs
- _UriSyntax.cs
- DispatcherExceptionFilterEventArgs.cs
- ProfileModule.cs
- xamlnodes.cs
- DebugView.cs
- SocketElement.cs
- MessagePropertyVariants.cs
- HandleScope.cs
- TextDecorationCollection.cs
- HttpContext.cs
- ContextQuery.cs
- Guid.cs
- DateTimeOffsetStorage.cs
- ConfigurationSectionHelper.cs
- SqlMethodCallConverter.cs
- TargetControlTypeCache.cs
- SourceInterpreter.cs
- GridViewRowPresenterBase.cs
- ListViewInsertedEventArgs.cs
- ChangeDirector.cs
- EndCreateSecurityTokenRequest.cs
- KeyProperty.cs
- InputMethodStateChangeEventArgs.cs
- XmlSchemaAttribute.cs
- MemoryPressure.cs
- SafeFileHandle.cs
- HierarchicalDataBoundControlAdapter.cs
- FileDialogCustomPlaces.cs
- StrokeSerializer.cs
- Decimal.cs
- InvokeWebService.cs
- ObjectDataSourceView.cs
- CommandConverter.cs
- WindowsImpersonationContext.cs
- BamlLocalizationDictionary.cs
- XmlReader.cs
- SharedPersonalizationStateInfo.cs
- ExponentialEase.cs
- ClassHandlersStore.cs
- DelegateCompletionCallbackWrapper.cs
- EmptyCollection.cs
- propertytag.cs
- NodeFunctions.cs
- DataControlField.cs
- CreationContext.cs
- SchemaImporterExtensionElement.cs
- EncryptedPackageFilter.cs
- Dictionary.cs
- CodeAttributeArgumentCollection.cs
- AccessDataSourceView.cs
- SettingsBindableAttribute.cs
- Point4D.cs
- TextRunTypographyProperties.cs
- ConfigUtil.cs
- PathData.cs
- SQLDouble.cs
- ObjectQuery.cs
- BStrWrapper.cs
- SessionMode.cs
- HttpContextServiceHost.cs
- WindowsSolidBrush.cs
- SafeNativeMethods.cs
- WebBrowserProgressChangedEventHandler.cs
- SelectedDatesCollection.cs
- XmlCharCheckingReader.cs
- SqlCacheDependencyDatabase.cs
- ItemCollection.cs
- CollectionChangedEventManager.cs
- MeshGeometry3D.cs
- ToolStripContainer.cs
- ObjectQueryProvider.cs
- SqlCacheDependencySection.cs
- ValueUtilsSmi.cs
- CharacterBufferReference.cs
- XmlLanguage.cs
- ItemType.cs
- Vector.cs
- PathFigure.cs
- ToolStripDropDownClosedEventArgs.cs
- TableRow.cs
- ConnectionStringSettings.cs
- HttpClientCertificate.cs
- DbSourceParameterCollection.cs
- PageParser.cs
- CFStream.cs
- RuleEngine.cs
- PerspectiveCamera.cs
- ObjectStateEntry.cs
- ImageBrush.cs
- LayoutTableCell.cs
- ExceptionUtil.cs
- InProcStateClientManager.cs
- CompositeScriptReference.cs