Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Navigation / FragmentNavigationEventArgs.cs / 1305600 / FragmentNavigationEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // // // History: // 02/01/05: [....] 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: [....] 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
- OraclePermissionAttribute.cs
- PathData.cs
- DynamicUpdateCommand.cs
- TargetFrameworkUtil.cs
- GenericUriParser.cs
- InertiaExpansionBehavior.cs
- ItemCollection.cs
- List.cs
- GridViewUpdatedEventArgs.cs
- TraversalRequest.cs
- LassoHelper.cs
- XPathDocumentNavigator.cs
- SupportingTokenSpecification.cs
- HotSpotCollection.cs
- MiniModule.cs
- ComponentConverter.cs
- XmlFormatExtensionPrefixAttribute.cs
- WebPartEditorApplyVerb.cs
- StylusEventArgs.cs
- ScriptServiceAttribute.cs
- EmptyCollection.cs
- FloaterBaseParagraph.cs
- ObjectQuery.cs
- RuntimeIdentifierPropertyAttribute.cs
- MetadataCache.cs
- DataListItemEventArgs.cs
- TextParagraphView.cs
- MSAAEventDispatcher.cs
- BevelBitmapEffect.cs
- EncodingInfo.cs
- PropertyGeneratedEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- connectionpool.cs
- PrintDocument.cs
- FilterQuery.cs
- InkCanvasInnerCanvas.cs
- MarkupExtensionParser.cs
- FindCompletedEventArgs.cs
- PartManifestEntry.cs
- keycontainerpermission.cs
- UnSafeCharBuffer.cs
- StsCommunicationException.cs
- coordinator.cs
- Compensation.cs
- CodeIdentifier.cs
- CodeFieldReferenceExpression.cs
- Vector3DKeyFrameCollection.cs
- XmlChoiceIdentifierAttribute.cs
- RtType.cs
- DataKeyPropertyAttribute.cs
- PrtTicket_Base.cs
- LocalizableAttribute.cs
- ChangeNode.cs
- BoolExpression.cs
- Matrix.cs
- _CacheStreams.cs
- ApplicationServicesHostFactory.cs
- ExtensionQuery.cs
- FormViewInsertedEventArgs.cs
- NumericUpDown.cs
- Item.cs
- _DomainName.cs
- LinqDataSourceStatusEventArgs.cs
- ArrayExtension.cs
- VersionedStream.cs
- ResolveDuplex11AsyncResult.cs
- WinFormsComponentEditor.cs
- SqlProcedureAttribute.cs
- CatalogPartChrome.cs
- MimeTypeAttribute.cs
- ProtocolsConfigurationHandler.cs
- Point3DAnimation.cs
- PropertyValidationContext.cs
- _RequestCacheProtocol.cs
- CodeLabeledStatement.cs
- FormViewRow.cs
- CachedTypeface.cs
- Html32TextWriter.cs
- SimpleLine.cs
- CompilationLock.cs
- NetworkAddressChange.cs
- SymbolType.cs
- DataGridItem.cs
- ObjectComplexPropertyMapping.cs
- WebBaseEventKeyComparer.cs
- HtmlHistory.cs
- TimeZone.cs
- MailSettingsSection.cs
- SchemaMapping.cs
- MsmqAuthenticationMode.cs
- AssemblySettingAttributes.cs
- AsyncStreamReader.cs
- Configuration.cs
- WaitForChangedResult.cs
- AddInEnvironment.cs
- TypeInitializationException.cs
- _DynamicWinsockMethods.cs
- ReadWriteSpinLock.cs
- ConfigPathUtility.cs
- DBCSCodePageEncoding.cs