JournalOwnership 列舉

定義

指定 Frame 是否使用其本身的日誌。 JournalOwnership 是由 JournalOwnership 屬性使用。

public enum class JournalOwnership
[System.Serializable]
public enum JournalOwnership
public enum JournalOwnership
[<System.Serializable>]
type JournalOwnership = 
type JournalOwnership = 
Public Enum JournalOwnership
繼承
JournalOwnership
屬性

欄位

Automatic 0

這個 Frame 是否會建立並使用其本身的日誌取決於其父代。

OwnsJournal 1

Frame 會維護其本身的日誌。

UsesParentJournal 2

Frame 會使用內容樹狀結構上下一個可用之巡覽裝載的日誌 (如果有的話)。 否則,就不會維護 Frame 的巡覽記錄。

範例

下列範例說明 Frame 將日誌管理產生給主機 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 ,會套用下列行為:

注意

Frame一旦建立自己的日誌,切換至 [自動] 就沒有任何作用。

適用於