JournalOwnership 枚举

定义

指定 Frame 是否使用自己的日记。Specifies whether a Frame uses its own journal. JournalOwnershipJournalOwnership 属性使用。JournalOwnership is used by the JournalOwnership property.

public enum class JournalOwnership
[System.Serializable]
public enum JournalOwnership
type JournalOwnership = 
Public Enum JournalOwnership
继承
JournalOwnership
属性

字段

Automatic 0

Frame 是否创建和使用自己的日记取决于它的父级。Whether or not this Frame will create and use its own journal depends on its parent.

OwnsJournal 1

Frame 维护自己的日记。The Frame maintains its own journal.

UsesParentJournal 2

Frame 使用内容树中下一个可用导航宿主的日记(如果有的话)。The Frame uses the journal of the next available navigation host up the content tree, if available. 否则,将不保留 Frame 的导航历史记录。Otherwise, navigation history is not maintained for the Frame.

示例

下面的示例演示了Frame向主机NavigationWindow生成日志管理的情况。The following example illustrates a Frame yielding journal management to a host NavigationWindow.

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">

  <!-- Frame that uses its own journal -->
  <Frame JournalOwnership="OwnsJournal" Source="Page2.xaml" />

</Page>

注解

JournalOwnership为自动时, 以下行为适用:When JournalOwnership is Automatic, the following behavior applies:

备注

Frame创建自己的日记后, 切换到 "自动" 不起作用。once a Frame creates its own journal, switching to Automatic has no effect.

适用于