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
- XmlSchemaComplexContent.cs
- FixUpCollection.cs
- TextReturnReader.cs
- httpstaticobjectscollection.cs
- RootProfilePropertySettingsCollection.cs
- Misc.cs
- Panel.cs
- OLEDB_Util.cs
- InputBinding.cs
- FieldNameLookup.cs
- CatalogPartChrome.cs
- UnsafeNetInfoNativeMethods.cs
- Material.cs
- FrameworkReadOnlyPropertyMetadata.cs
- VisualProxy.cs
- UrlAuthorizationModule.cs
- SafePEFileHandle.cs
- WhitespaceSignificantCollectionAttribute.cs
- DataGridViewCellEventArgs.cs
- ResizeGrip.cs
- DataControlFieldCell.cs
- DataGridViewCellConverter.cs
- HeaderedContentControl.cs
- Brush.cs
- SemanticResultValue.cs
- Variable.cs
- DocumentCollection.cs
- OutputCacheProfileCollection.cs
- AtomServiceDocumentSerializer.cs
- DataGridAutomationPeer.cs
- BitmapEffectDrawingContent.cs
- ByteAnimationUsingKeyFrames.cs
- PageParserFilter.cs
- WmfPlaceableFileHeader.cs
- FormattedText.cs
- CacheHelper.cs
- SqlProfileProvider.cs
- Application.cs
- SafeRightsManagementEnvironmentHandle.cs
- AssociationProvider.cs
- HwndSourceKeyboardInputSite.cs
- TypeDescriptionProviderAttribute.cs
- DiscoveryInnerClientAdhoc11.cs
- SqlHelper.cs
- DataFormats.cs
- HtmlButton.cs
- DataGridRow.cs
- EdmComplexTypeAttribute.cs
- nulltextnavigator.cs
- TTSEvent.cs
- XmlIgnoreAttribute.cs
- DataBinder.cs
- TCEAdapterGenerator.cs
- LinkedResourceCollection.cs
- CompareInfo.cs
- XmlRawWriter.cs
- RegexBoyerMoore.cs
- NumericUpDownAccelerationCollection.cs
- EnumConverter.cs
- DescriptionAttribute.cs
- SingleSelectRootGridEntry.cs
- XmlFormatReaderGenerator.cs
- CodeGenerator.cs
- DbgUtil.cs
- OutOfProcStateClientManager.cs
- XmlArrayAttribute.cs
- ArrangedElementCollection.cs
- DefaultCommandConverter.cs
- ReaderContextStackData.cs
- DataGridViewCellValueEventArgs.cs
- SyntaxCheck.cs
- ConfigurationPermission.cs
- XPathScanner.cs
- DataViewManager.cs
- ProfileParameter.cs
- ObjectDisposedException.cs
- SimpleType.cs
- XPathQueryGenerator.cs
- GridViewRowEventArgs.cs
- ValueTypeFixupInfo.cs
- AuthenticationSchemesHelper.cs
- Compiler.cs
- RadioButtonBaseAdapter.cs
- RegisteredScript.cs
- SharedConnectionWorkflowTransactionService.cs
- MostlySingletonList.cs
- AddingNewEventArgs.cs
- SafeNativeMethods.cs
- MissingFieldException.cs
- DataErrorValidationRule.cs
- _ListenerResponseStream.cs
- ProcessInfo.cs
- QuestionEventArgs.cs
- BitmapSizeOptions.cs
- LinkButton.cs
- MultiPropertyDescriptorGridEntry.cs
- CompilerResults.cs
- StartUpEventArgs.cs
- DefaultValidator.cs
- TemplateBindingExpressionConverter.cs