JournalOwnership Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether a Frame uses its own journal. JournalOwnership is used by the JournalOwnership property.
public enum class JournalOwnership
[System.Serializable]
public enum JournalOwnership
public enum JournalOwnership
[<System.Serializable>]
type JournalOwnership =
type JournalOwnership =
Public Enum JournalOwnership
- Inheritance
- Attributes
Fields
Automatic | 0 | Whether or not this Frame will create and use its own journal depends on its parent. |
OwnsJournal | 1 | The Frame maintains its own journal. |
UsesParentJournal | 2 | The Frame uses the journal of the next available navigation host up the content tree, if available. Otherwise, navigation history is not maintained for the Frame. |
Examples
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>
Remarks
When JournalOwnership is Automatic, the following behavior applies:
The hosted Frame behaves as though UsesParentJournal was set if it is hosted by either a Frame or a NavigationWindow.
The hosted Frame behaves as though OwnsJournal was set if:
It is not directly hosted by either a Frame or NavigationWindow.
It is hosted by at least one Frame, where each containing Frame has its JournalOwnership property is set to UsesParentJournal.
Note
once a Frame creates its own journal, switching to Automatic has no effect.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應