Frame.JournalOwnership 屬性

定義

取得或設定 Frame 是否要負責管理自己的巡覽記錄,或是要將巡覽記錄管理工作讓與父代巡覽器 (NavigationWindowFrame)。

public:
 property System::Windows::Navigation::JournalOwnership JournalOwnership { System::Windows::Navigation::JournalOwnership get(); void set(System::Windows::Navigation::JournalOwnership value); };
public System.Windows.Navigation.JournalOwnership JournalOwnership { get; set; }
member this.JournalOwnership : System.Windows.Navigation.JournalOwnership with get, set
Public Property JournalOwnership As JournalOwnership

屬性值

JournalOwnership

指定 JournalOwnership 是否要管理自己日誌的 Frame 值。 預設值是 Automatic

範例

下列範例說明 Frame 設定為使用自己的流覽歷程記錄的 。

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

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

</Page>

備註

根據預設, Frame 只有在父導覽主機 (NavigationWindow 時,才能使用自己的導覽歷程記錄, Frame 例如,如果 Frame 裝載于) 所裝載的內容 Window 中,) 與自己的日誌 (。 若要強制 Frame 管理自己的流覽歷程記錄,請將 設定 JournalOwnershipOwnsJournal

相依性屬性資訊

識別碼欄位 JournalOwnershipProperty
中繼資料屬性設定為 true

適用於