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
- XmlEncoding.cs
- ArraySortHelper.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SerializationSectionGroup.cs
- BufferModeSettings.cs
- MaterialGroup.cs
- TimeIntervalCollection.cs
- Compilation.cs
- DBDataPermission.cs
- CompositeFontParser.cs
- x509utils.cs
- LocalizableAttribute.cs
- ContentElement.cs
- CacheChildrenQuery.cs
- DataGridColumn.cs
- ReflectionPermission.cs
- CachedCompositeFamily.cs
- HtmlInputFile.cs
- FormatSelectingMessageInspector.cs
- IODescriptionAttribute.cs
- RectAnimation.cs
- ColorIndependentAnimationStorage.cs
- MergePropertyDescriptor.cs
- PropagatorResult.cs
- SendMessageChannelCache.cs
- PrefixHandle.cs
- ObjectStorage.cs
- PermissionSet.cs
- BitmapMetadataEnumerator.cs
- ZoneButton.cs
- EventLogger.cs
- TypeRestriction.cs
- ThemeDictionaryExtension.cs
- DiagnosticsConfigurationHandler.cs
- StorageModelBuildProvider.cs
- WindowsAltTab.cs
- EntityDataSourceViewSchema.cs
- PanelStyle.cs
- DataControlCommands.cs
- SafeThreadHandle.cs
- BehaviorEditorPart.cs
- BlurEffect.cs
- CodeTypeDeclaration.cs
- MailBnfHelper.cs
- ConfigurationValues.cs
- EtwTrace.cs
- Registry.cs
- ObjectViewListener.cs
- ItemMap.cs
- ObjRef.cs
- CqlParserHelpers.cs
- XPathPatternBuilder.cs
- TextContainerHelper.cs
- BitConverter.cs
- CollectionConverter.cs
- XmlCountingReader.cs
- Parameter.cs
- TextTreeNode.cs
- EntityDataSourceQueryBuilder.cs
- SHA1.cs
- XmlSchemaObjectCollection.cs
- GenerateScriptTypeAttribute.cs
- Margins.cs
- StreamUpdate.cs
- DataGridViewTextBoxCell.cs
- EncodingTable.cs
- MetadataItem_Static.cs
- ItemCheckEvent.cs
- XamlPathDataSerializer.cs
- ADRoleFactory.cs
- AutomationPropertyInfo.cs
- EventBindingService.cs
- PersonalizableTypeEntry.cs
- XmlSchemaGroup.cs
- ConstraintManager.cs
- ProxyWebPartManager.cs
- DataContractSerializerSection.cs
- ExpressionVisitor.cs
- Invariant.cs
- ThreadAbortException.cs
- MailAddressParser.cs
- SelectedGridItemChangedEvent.cs
- MissingSatelliteAssemblyException.cs
- DateBoldEvent.cs
- ProxyGenerationError.cs
- LogSwitch.cs
- TextServicesDisplayAttribute.cs
- MarshalByRefObject.cs
- ScriptManager.cs
- HostingPreferredMapPath.cs
- ComplusTypeValidator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Graphics.cs
- DbConnectionPoolIdentity.cs
- TargetParameterCountException.cs
- XmlSchemaGroupRef.cs
- SmtpTransport.cs
- FieldToken.cs
- SqlInternalConnection.cs
- Scripts.cs