Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentGuaranteesAttribute.cs
- XPathChildIterator.cs
- UIElementPropertyUndoUnit.cs
- UnsafeNativeMethods.cs
- X509Certificate.cs
- TreeNodeMouseHoverEvent.cs
- SequenceQuery.cs
- ValidatingPropertiesEventArgs.cs
- XmlLanguage.cs
- SerialReceived.cs
- Menu.cs
- ZoneLinkButton.cs
- SimpleHandlerFactory.cs
- XPathExpr.cs
- MessagePropertyVariants.cs
- FormatException.cs
- BamlRecords.cs
- SymDocumentType.cs
- ConnectionPoolManager.cs
- EntityDesignerUtils.cs
- BaseDataBoundControl.cs
- FormattedText.cs
- MobileResource.cs
- Compensate.cs
- StaticDataManager.cs
- DataGridViewComboBoxEditingControl.cs
- SchemaNames.cs
- StoreContentChangedEventArgs.cs
- CodeCompiler.cs
- DataTablePropertyDescriptor.cs
- EntityTypeEmitter.cs
- MetricEntry.cs
- FixedSOMElement.cs
- CodeMemberEvent.cs
- DataGridCellInfo.cs
- ActivitySurrogateSelector.cs
- XmlDsigSep2000.cs
- ICspAsymmetricAlgorithm.cs
- ConfigUtil.cs
- OdbcConnectionFactory.cs
- LassoHelper.cs
- Pen.cs
- GCHandleCookieTable.cs
- webbrowsersite.cs
- AutomationPatternInfo.cs
- ParameterExpression.cs
- StylusPoint.cs
- QuaternionAnimation.cs
- HashCodeCombiner.cs
- ResourceProviderFactory.cs
- DataGridViewRowCancelEventArgs.cs
- OleDbTransaction.cs
- PowerModeChangedEventArgs.cs
- PointAnimationClockResource.cs
- HtmlDocument.cs
- QualificationDataItem.cs
- ParseChildrenAsPropertiesAttribute.cs
- CustomErrorCollection.cs
- AttributeQuery.cs
- WorkflowMarkupSerializer.cs
- EditorZone.cs
- DockProviderWrapper.cs
- XmlSchemaObjectTable.cs
- ConnectionPoint.cs
- DecoderExceptionFallback.cs
- MessageOperationFormatter.cs
- TextElementEnumerator.cs
- ADConnectionHelper.cs
- DefaultPropertyAttribute.cs
- AutoResetEvent.cs
- IndependentAnimationStorage.cs
- ListView.cs
- CompilerErrorCollection.cs
- MembershipUser.cs
- OutputWindow.cs
- SqlBuilder.cs
- DateTimeFormatInfoScanner.cs
- XmlSchemaComplexContentExtension.cs
- HtmlTableRow.cs
- QueryCursorEventArgs.cs
- AspNetSynchronizationContext.cs
- ProviderException.cs
- DesignerTransaction.cs
- MailHeaderInfo.cs
- RolePrincipal.cs
- Rules.cs
- PageCache.cs
- SByteStorage.cs
- UITypeEditor.cs
- ConfigurationStrings.cs
- ContentFileHelper.cs
- SqlInternalConnectionTds.cs
- DesignerAutoFormatCollection.cs
- JulianCalendar.cs
- SqlTransaction.cs
- XslException.cs
- IdleTimeoutMonitor.cs
- DataGridViewTopRowAccessibleObject.cs
- ContainerSelectorGlyph.cs
- WebPartTransformer.cs