Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Navigation / FragmentNavigationEventArgs.cs / 1 / FragmentNavigationEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // // // History: // 02/01/05: erichar Created. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Navigation { ////// FragmentNavigationEventArgs exposes the fragment being navigated to /// in an event fired from NavigationService to notify a listening client /// that a navigation to fragment is about to occur. This is used for table /// of contents navigations in fixed format documents. /// public class FragmentNavigationEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal FragmentNavigationEventArgs(string fragment, object Navigator) { _fragment = fragment; _navigator = Navigator; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// The fragment part of the URI that was passed to the Navigate() API which initiated this navigation. /// The fragment may be String.Empty to indicate a scroll to the top of the page. /// public string Fragment { get { return _fragment; } } ////// If this flag is not set by the called method then NavigationService will attempt to /// find an element with name equal to the fragment and bring it into view. /// public bool Handled { get { return _handled; } set { _handled = value; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private string _fragment; private bool _handled; object _navigator; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // // // History: // 02/01/05: erichar Created. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Navigation { ////// FragmentNavigationEventArgs exposes the fragment being navigated to /// in an event fired from NavigationService to notify a listening client /// that a navigation to fragment is about to occur. This is used for table /// of contents navigations in fixed format documents. /// public class FragmentNavigationEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal FragmentNavigationEventArgs(string fragment, object Navigator) { _fragment = fragment; _navigator = Navigator; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// The fragment part of the URI that was passed to the Navigate() API which initiated this navigation. /// The fragment may be String.Empty to indicate a scroll to the top of the page. /// public string Fragment { get { return _fragment; } } ////// If this flag is not set by the called method then NavigationService will attempt to /// find an element with name equal to the fragment and bring it into view. /// public bool Handled { get { return _handled; } set { _handled = value; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private string _fragment; private bool _handled; object _navigator; #endregion Private Fields } } // 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
- ListenerConnectionModeReader.cs
- RegexFCD.cs
- PolicyConversionContext.cs
- Material.cs
- TextTreeText.cs
- DesignerMetadata.cs
- KeyInterop.cs
- InstanceContext.cs
- LocalFileSettingsProvider.cs
- DynamicDataResources.Designer.cs
- AttributeProviderAttribute.cs
- HtmlWindowCollection.cs
- OutputCacheSection.cs
- Tile.cs
- AdornerLayer.cs
- PostBackTrigger.cs
- CodeTypeReferenceCollection.cs
- X509Chain.cs
- DescendantQuery.cs
- PersonalizationAdministration.cs
- CompoundFileIOPermission.cs
- DispatcherTimer.cs
- Cast.cs
- MarkupObject.cs
- SetStoryboardSpeedRatio.cs
- ProfileModule.cs
- BinarySerializer.cs
- XhtmlConformanceSection.cs
- unsafeIndexingFilterStream.cs
- BrowserDefinitionCollection.cs
- ExecutionEngineException.cs
- SocketAddress.cs
- HttpListenerRequest.cs
- HtmlInputRadioButton.cs
- QilIterator.cs
- StateMachine.cs
- Types.cs
- WinFormsSpinner.cs
- ConfigXmlElement.cs
- ContentWrapperAttribute.cs
- IgnoreFileBuildProvider.cs
- CorrelationKey.cs
- TextCompositionManager.cs
- DataGridViewRowCancelEventArgs.cs
- DataGridViewControlCollection.cs
- EntityParameter.cs
- TextCollapsingProperties.cs
- EraserBehavior.cs
- HebrewCalendar.cs
- DataGridLinkButton.cs
- HandlerBase.cs
- WmfPlaceableFileHeader.cs
- ToolBarButton.cs
- SmuggledIUnknown.cs
- Normalizer.cs
- RootBuilder.cs
- ScriptReferenceEventArgs.cs
- ListBox.cs
- ManipulationCompletedEventArgs.cs
- OleAutBinder.cs
- SystemIPv4InterfaceProperties.cs
- StackBuilderSink.cs
- InkCanvasInnerCanvas.cs
- Version.cs
- WindowsTitleBar.cs
- GifBitmapEncoder.cs
- TemplateBuilder.cs
- BitmapMetadataEnumerator.cs
- CompilerState.cs
- Base64Encoder.cs
- CodeDirectoryCompiler.cs
- TracingConnectionListener.cs
- SingleTagSectionHandler.cs
- DefaultValueTypeConverter.cs
- EncoderReplacementFallback.cs
- WebBrowserHelper.cs
- MetadataCache.cs
- LookupNode.cs
- LicenseManager.cs
- MultilineStringConverter.cs
- QilGenerator.cs
- DataErrorValidationRule.cs
- RIPEMD160Managed.cs
- InOutArgument.cs
- HandlerBase.cs
- SafeNativeMethods.cs
- Roles.cs
- TableCell.cs
- WebPartAddingEventArgs.cs
- X509Certificate2Collection.cs
- BaseInfoTable.cs
- ItemsPanelTemplate.cs
- SqlExpander.cs
- BrowserCapabilitiesCodeGenerator.cs
- TemplateEditingVerb.cs
- Property.cs
- BitStack.cs
- HashMembershipCondition.cs
- HotSpotCollectionEditor.cs
- ThreadInterruptedException.cs