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
- SchemaImporterExtension.cs
- FixedHighlight.cs
- codemethodreferenceexpression.cs
- DodSequenceMerge.cs
- TransformerInfo.cs
- CharAnimationBase.cs
- ProgressBar.cs
- ResourceAttributes.cs
- WindowsAuthenticationModule.cs
- EntityDesignerDataSourceView.cs
- RequestCacheManager.cs
- ExceptionValidationRule.cs
- RadioButtonBaseAdapter.cs
- PhoneCallDesigner.cs
- ClientRuntimeConfig.cs
- VisualBrush.cs
- InstallerTypeAttribute.cs
- DataConnectionHelper.cs
- TransactionTraceIdentifier.cs
- XmlCharacterData.cs
- UTF8Encoding.cs
- CompiledQueryCacheEntry.cs
- mediaclock.cs
- CFStream.cs
- ExceptionUtil.cs
- ChineseLunisolarCalendar.cs
- SemanticAnalyzer.cs
- BypassElementCollection.cs
- PrinterSettings.cs
- NodeFunctions.cs
- X509CertificateValidator.cs
- StreamReader.cs
- CompositeClientFormatter.cs
- TemplateBuilder.cs
- RegexBoyerMoore.cs
- IgnoreFileBuildProvider.cs
- SoapCodeExporter.cs
- TextSimpleMarkerProperties.cs
- HandleExceptionArgs.cs
- WmlSelectionListAdapter.cs
- MetaColumn.cs
- TextElement.cs
- httpstaticobjectscollection.cs
- IgnoreFileBuildProvider.cs
- AspCompat.cs
- WebConfigurationHost.cs
- ellipse.cs
- CommandHelpers.cs
- NativeMethods.cs
- Speller.cs
- SR.cs
- ColumnCollection.cs
- _HeaderInfoTable.cs
- DocumentPageHost.cs
- Region.cs
- DataContractJsonSerializer.cs
- HandleExceptionArgs.cs
- ObjectSecurity.cs
- OdbcStatementHandle.cs
- MarkupCompilePass2.cs
- ForAllOperator.cs
- TdsRecordBufferSetter.cs
- DmlSqlGenerator.cs
- TextRangeAdaptor.cs
- MimeTypePropertyAttribute.cs
- Win32Native.cs
- COAUTHINFO.cs
- XPathNode.cs
- Blend.cs
- CompositeClientFormatter.cs
- ColumnMapProcessor.cs
- SecurityUtils.cs
- Evaluator.cs
- MarkupWriter.cs
- ObjectDataSourceMethodEventArgs.cs
- MarshalDirectiveException.cs
- QuadraticBezierSegment.cs
- WindowsImpersonationContext.cs
- ObjectStateManagerMetadata.cs
- Int64KeyFrameCollection.cs
- VectorConverter.cs
- ImageSourceValueSerializer.cs
- XPathDocumentBuilder.cs
- CodeNamespaceCollection.cs
- SqlMethodAttribute.cs
- XmlObjectSerializerContext.cs
- UTF7Encoding.cs
- HostVisual.cs
- ItemContainerGenerator.cs
- ProvideValueServiceProvider.cs
- ComponentChangingEvent.cs
- Item.cs
- CqlGenerator.cs
- ArgumentDirectionHelper.cs
- MsmqIntegrationBinding.cs
- DocumentXmlWriter.cs
- SignedXml.cs
- ReflectionPermission.cs
- ValueHandle.cs
- _AutoWebProxyScriptEngine.cs