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
- ValidatingReaderNodeData.cs
- CodeMethodInvokeExpression.cs
- QueryPageSettingsEventArgs.cs
- SqlConnectionStringBuilder.cs
- TileModeValidation.cs
- ImportedNamespaceContextItem.cs
- EntityContainerEntitySetDefiningQuery.cs
- GCHandleCookieTable.cs
- ToolStripContentPanelRenderEventArgs.cs
- QilInvokeEarlyBound.cs
- MultilineStringConverter.cs
- XmlElementAttribute.cs
- CodeIndexerExpression.cs
- LassoHelper.cs
- ObfuscationAttribute.cs
- ClientConfigurationSystem.cs
- Deflater.cs
- MsmqChannelFactory.cs
- Normalizer.cs
- GAC.cs
- BitmapEffectDrawingContextWalker.cs
- StrokeNodeData.cs
- InternalBufferOverflowException.cs
- Codec.cs
- ActivityTypeDesigner.xaml.cs
- TypePresenter.xaml.cs
- ResourceProviderFactory.cs
- SplitterCancelEvent.cs
- InternalConfigSettingsFactory.cs
- OleAutBinder.cs
- PolyBezierSegment.cs
- FileCodeGroup.cs
- EDesignUtil.cs
- SystemIPGlobalProperties.cs
- ConnectionManagementSection.cs
- SqlFormatter.cs
- OpCellTreeNode.cs
- OleDbPermission.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CompModSwitches.cs
- OrderByQueryOptionExpression.cs
- OracleCommandBuilder.cs
- WebBrowserNavigatingEventHandler.cs
- KeyInfo.cs
- CodeAccessSecurityEngine.cs
- DrawingContextWalker.cs
- PublishLicense.cs
- RuntimeVariablesExpression.cs
- OutOfMemoryException.cs
- ZoneLinkButton.cs
- Int16.cs
- SafeFileMappingHandle.cs
- GeneralTransform2DTo3D.cs
- FrameworkElementFactory.cs
- AggregationMinMaxHelpers.cs
- FormsAuthenticationConfiguration.cs
- SoapAttributeOverrides.cs
- _SecureChannel.cs
- MapPathBasedVirtualPathProvider.cs
- ListViewCancelEventArgs.cs
- Module.cs
- ListViewItem.cs
- ResourcesBuildProvider.cs
- CodeTypeDeclarationCollection.cs
- CultureInfoConverter.cs
- StreamingContext.cs
- ObjectIDGenerator.cs
- XhtmlBasicTextViewAdapter.cs
- SharedPersonalizationStateInfo.cs
- ChildrenQuery.cs
- ApplicationDirectory.cs
- VarRemapper.cs
- WindowsListViewItem.cs
- CodeGen.cs
- MemoryStream.cs
- DataControlImageButton.cs
- XmlNotation.cs
- MetadataExporter.cs
- PeerName.cs
- XmlWrappingWriter.cs
- DataPagerCommandEventArgs.cs
- Rfc2898DeriveBytes.cs
- Matrix3DConverter.cs
- SessionStateContainer.cs
- SoapHeaderAttribute.cs
- DateTimeSerializationSection.cs
- WrappedIUnknown.cs
- basemetadatamappingvisitor.cs
- ProtocolsInstallComponent.cs
- CapabilitiesSection.cs
- AccessControlEntry.cs
- ToReply.cs
- ViewService.cs
- InvalidWMPVersionException.cs
- XamlStyleSerializer.cs
- RegexCompilationInfo.cs
- TreeNode.cs
- IndexingContentUnit.cs
- PriorityQueue.cs
- SqlDataSourceStatusEventArgs.cs