Page.Title 属性

定义

获取或设置 Page 的标题。Gets or sets the title of the Page.

public:
 property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
public string Title { get; set; }
member this.Title : string with get, set
Public Property Title As String

属性值

String

Page 的标题。The title of the Page.

注解

Title 属性的值不会 Page显示,也不会显示在承载 Page的窗口的标题栏中。The value of the Title property is not displayed by Page, nor is it displayed from the title bar of the window that is hosting a Page. 而是将 WindowTitle 设置为更改主机窗口的标题。Instead, you set WindowTitle to change the title of a host window.

Title 还可用于为一段导航内容生成导航历史记录项的名称。Title can also be used to generate the name of the navigation history entry for a piece of navigated content. 以下数据片段用于按优先级顺序自动构造导航历史记录项名称:The following pieces of data are used to automatically construct a navigation history entry name, in order of precedence:

  • 附加 Name 特性。The attached Name attribute.

  • 属性。The property.
  • 当前页的 WindowTitle 属性和统一资源标识符(URI)The WindowTitle property and the uniform resource identifier (URI) for the current page

  • 当前页的统一资源标识符(URI)。The uniform resource identifier (URI) for the current page.

如果已将 CustomContentState 对象与导航历史记录中的一段内容相关联,则可以通过重写 CustomContentState.JournalEntryName来指定导航历史记录项中显示的名称。If you have associated a CustomContentState object with a piece of content in navigation history, you can specify the name that appears in the navigation history entry by overriding CustomContentState.JournalEntryName.

依赖项属性信息Dependency Property Information

标识符字段Identifier field TitleProperty
元数据属性设置为 trueMetadata properties set to true None

适用于