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 / 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
- ReaderContextStackData.cs
- ImageSource.cs
- Parsers.cs
- StatusBarPanel.cs
- TokenBasedSetEnumerator.cs
- ToolStripArrowRenderEventArgs.cs
- IImplicitResourceProvider.cs
- XmlHierarchicalDataSourceView.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- FtpCachePolicyElement.cs
- SoapMessage.cs
- BypassElement.cs
- MenuBindingsEditor.cs
- UserPrincipalNameElement.cs
- hwndwrapper.cs
- TextAnchor.cs
- TitleStyle.cs
- ModifierKeysValueSerializer.cs
- BaseCollection.cs
- TemplateBuilder.cs
- OracleParameter.cs
- TreeBuilder.cs
- BuildProvider.cs
- CapabilitiesUse.cs
- ShaderEffect.cs
- XPathNodeHelper.cs
- ClientFormsIdentity.cs
- TextEditor.cs
- DataContractSerializerSection.cs
- GatewayDefinition.cs
- ColumnMapCopier.cs
- DecoderNLS.cs
- OLEDB_Util.cs
- SecurityKeyIdentifier.cs
- LassoHelper.cs
- HttpVersion.cs
- FacetValueContainer.cs
- InstanceLockedException.cs
- RotateTransform3D.cs
- SiteMapNodeItem.cs
- QilTernary.cs
- InvalidOleVariantTypeException.cs
- BooleanStorage.cs
- LexicalChunk.cs
- Point3DCollectionValueSerializer.cs
- XamlPoint3DCollectionSerializer.cs
- ListViewGroupItemCollection.cs
- DetailsViewDeletedEventArgs.cs
- Char.cs
- WebPartsSection.cs
- WindowsFormsHelpers.cs
- AttachedPropertyDescriptor.cs
- DataServiceQuery.cs
- VScrollBar.cs
- ZipIOExtraField.cs
- EntityModelSchemaGenerator.cs
- HtmlLink.cs
- figurelengthconverter.cs
- MouseEventArgs.cs
- SQLString.cs
- dbdatarecord.cs
- XmlNullResolver.cs
- DataColumnMappingCollection.cs
- filewebresponse.cs
- ToolBarButtonClickEvent.cs
- RecognizedWordUnit.cs
- FileLevelControlBuilderAttribute.cs
- XpsS0ValidatingLoader.cs
- TextServicesCompartment.cs
- MulticastNotSupportedException.cs
- PersonalizationAdministration.cs
- EditorZoneAutoFormat.cs
- NumberAction.cs
- ConnectivityStatus.cs
- MeasureData.cs
- TemplateFactory.cs
- SR.cs
- GlyphRunDrawing.cs
- LayoutSettings.cs
- XmlQualifiedName.cs
- WebBrowserContainer.cs
- TriggerActionCollection.cs
- ProcessThread.cs
- DataGridViewRowsRemovedEventArgs.cs
- DatatypeImplementation.cs
- RandomNumberGenerator.cs
- RegexCode.cs
- ZipIOModeEnforcingStream.cs
- OrderedDictionary.cs
- SiteMapPathDesigner.cs
- TextRange.cs
- odbcmetadatacolumnnames.cs
- XmlExtensionFunction.cs
- ClaimTypes.cs
- PopupControlService.cs
- RegistrationServices.cs
- WindowsToolbar.cs
- MenuItem.cs
- WriteTimeStream.cs
- TextElementEnumerator.cs