FragmentNavigationEventArgs 类
定义
为 FragmentNavigation 事件提供数据。Provides data for the FragmentNavigation event.
public ref class FragmentNavigationEventArgs : EventArgs
public class FragmentNavigationEventArgs : EventArgs
type FragmentNavigationEventArgs = class
inherit EventArgs
Public Class FragmentNavigationEventArgs
Inherits EventArgs
- 继承
注解
T 这些事件参数包含有关要导航到的内容片段的信息,并传递给FragmentNavigation事件的处理程序,该事件由以下项实现:T These event arguments contain information about the content fragment that is being navigated to, and are passed to handlers of the FragmentNavigation event, which is implemented by the following:
默认情况下,内容片段是命名 UIElement包含的内容,该名称是设置 Name 属性的 UIElement,例如:By default, a content fragment is content that is contained by a named UIElement, which is a UIElement whose Name attribute is set, e.g.:
<TextBlock Name="FragmentName">...</TextBlock>
通过提供具有以下格式的后缀的 URI 导航到 XAMLXAML 片段:You navigate to a XAMLXAML fragment by providing a URI with a suffix in the following format:
#FragmentName#FragmentName
下面显示了引用内容片段的 URI 示例:The following shows an example of a URI that refers to a content fragment:
http://www.microsoft.com/targetpage.xaml#FragmentName
可以处理FragmentNavigation事件,并使用 FragmentNavigationEventArgs 实现自定义内容片段处理实现。You can handle the FragmentNavigation event and use FragmentNavigationEventArgs to implement a custom content fragment handling implementation.
属性
Fragment |
获取统一资源标识符 (URI) 片段。Gets the uniform resource identifier (URI) fragment. |
Handled |
获取或设置指示是否已对片段导航进行了处理的值。Gets or sets a value that indicates whether the fragment navigation has been handled. |
Navigator |
引发 FragmentNavigation 事件的导航器。The navigator that raised the FragmentNavigation event. |
方法
Equals(Object) |
确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetHashCode() |
用作默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
返回一个表示当前对象的 string。Returns a string that represents the current object. (继承自 Object) |