Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataSourceXmlElementAttribute.cs
- JsonDataContract.cs
- ParseChildrenAsPropertiesAttribute.cs
- DataColumnMappingCollection.cs
- AdRotatorDesigner.cs
- ProgressBar.cs
- UInt64.cs
- SelectionManager.cs
- HtmlElementEventArgs.cs
- CustomError.cs
- ColorConverter.cs
- HandledEventArgs.cs
- LogicalTreeHelper.cs
- wmiprovider.cs
- BulletedListDesigner.cs
- FacetDescriptionElement.cs
- TypeConstant.cs
- CodeIdentifiers.cs
- CollectionBase.cs
- MetafileHeader.cs
- XmlElementAttribute.cs
- RepeatBehavior.cs
- XsltSettings.cs
- XmlSchemaNotation.cs
- XmlReader.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SpeakCompletedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- TTSEngineProxy.cs
- AttributeProviderAttribute.cs
- _HelperAsyncResults.cs
- UIElement.cs
- CompositeScriptReference.cs
- LineVisual.cs
- AuthorizationRuleCollection.cs
- StylusPoint.cs
- DoubleAnimation.cs
- SqlInfoMessageEvent.cs
- MethodRental.cs
- XmlSchemaCollection.cs
- SimpleTypeResolver.cs
- WebPartZoneCollection.cs
- TextTreePropertyUndoUnit.cs
- AttributeEmitter.cs
- OverrideMode.cs
- DictionarySectionHandler.cs
- DecoderReplacementFallback.cs
- securitycriticaldataformultiplegetandset.cs
- PersonalizableTypeEntry.cs
- MsmqHostedTransportManager.cs
- SynchronizationLockException.cs
- RecognizedWordUnit.cs
- AndCondition.cs
- ProcessModelSection.cs
- ValidatorCompatibilityHelper.cs
- QilReplaceVisitor.cs
- WorkflowMarkupSerializationException.cs
- KnownTypesHelper.cs
- CheckBoxBaseAdapter.cs
- RequestCachingSection.cs
- FlowLayoutPanel.cs
- PackageProperties.cs
- IntranetCredentialPolicy.cs
- XmlnsPrefixAttribute.cs
- LoginCancelEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- DocumentPageHost.cs
- AdapterUtil.cs
- MobileUITypeEditor.cs
- DataService.cs
- SessionStateContainer.cs
- RelativeSource.cs
- CompilationSection.cs
- CharacterBuffer.cs
- SafeSecurityHelper.cs
- followingsibling.cs
- CommonDialog.cs
- ResourceDictionaryCollection.cs
- Directory.cs
- DataTemplateKey.cs
- ToolStripDropDown.cs
- CheckBoxFlatAdapter.cs
- AppDomainManager.cs
- SQLDoubleStorage.cs
- Emitter.cs
- UserControlBuildProvider.cs
- PrintController.cs
- HtmlAnchor.cs
- InvokeWebServiceDesigner.cs
- CodeMemberField.cs
- MarginCollapsingState.cs
- CompiledQuery.cs
- LinkAreaEditor.cs
- ColorMatrix.cs
- ClientConvert.cs
- SizeChangedInfo.cs
- RegistrationContext.cs
- StringSorter.cs
- XPathItem.cs
- XmlWrappingWriter.cs