Exporter (0) Imprimer
Développer tout

Frame.JournalOwnership, propriété

Gets or sets whether a Frame is responsible for managing its own navigation history, or yields navigation history management to a parent navigator (NavigationWindow, Frame).

Espace de noms: System.Windows.Controls
Assembly : PresentationFramework (dans presentationframework.dll)
Espace de noms XML :  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public JournalOwnership JournalOwnership { get; set; }
/** @property */
public JournalOwnership get_JournalOwnership ()

/** @property */
public void set_JournalOwnership (JournalOwnership value)

public function get JournalOwnership () : JournalOwnership

public function set JournalOwnership (value : JournalOwnership)

<object JournalOwnership="JournalOwnership" .../>

Valeur de la propriété

A JournalOwnership value that specifies whether Frame manages its own journal. The default value is Automatic.

By default, Frame will use its own navigation history only if a parent navigator (NavigationWindow, Frame) with its own navigation history can't be found.

To force Frame to manage its own navigation history, set JournalOwnership to OwnsJournal. Such a Frame is known as an "island frame".

The following example illustrates a Frame yielding navigation history management to a host NavigationWindow.

<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="HomePage"
    >
	<StackPanel>
		<TextBlock>
			<Hyperlink NavigateUri="Page2.xaml">Page2</Hyperlink>
		</TextBlock>
		<!--Frame that uses parent journal, which will be this page's host-->
		<Frame JournalOwnership="UsesParentJournal" Source="Page3.xaml" />
	</StackPanel>
</Page>

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0

Ajouts de la communauté

AJOUTER
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
Afficher:
© 2015 Microsoft