JournalEntry Class
Represents an entry in either back or forward navigation history.
System.Windows.Threading::DispatcherObject
System.Windows::DependencyObject
System.Windows.Navigation::JournalEntry
Assembly: PresentationFramework (in PresentationFramework.dll)
The JournalEntry type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | JournalEntry | Infrastructure. Initializes a new instance of the JournalEntry class. |
| Name | Description | |
|---|---|---|
![]() | CustomContentState | Gets or sets the CustomContentState object that is associated with this journal entry. |
![]() | DependencyObjectType | Gets the DependencyObjectType that wraps the CLR type of this instance. (Inherited from DependencyObject.) |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | IsSealed | Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.) |
![]() | Name | Gets or sets the name of the journal entry. |
![]() | Source | Gets or sets the URI of the content that was navigated to. |
| Name | Description | |
|---|---|---|
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | ClearValue(DependencyProperty) | Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.) |
![]() | ClearValue(DependencyPropertyKey) | Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.) |
![]() | CoerceValue | Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.) |
![]() | Equals | Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Gets a hash code for this DependencyObject. (Inherited from DependencyObject.) |
![]() ![]() | GetKeepAlive | Returns the KeepAlive attached property of the journal entry for the specified element. |
![]() | GetLocalValueEnumerator | Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.) |
![]() ![]() | GetName | Gets the Name attached property of the journal entry for the specified element. |
![]() | GetObjectData | Called when this object is serialized. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValue | Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.) |
![]() | InvalidateProperty | Re-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnPropertyChanged | Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (Inherited from DependencyObject.) |
![]() | ReadLocalValue | Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.) |
![]() | SetCurrentValue | Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.) |
![]() ![]() | SetKeepAlive | Sets the KeepAlive attached property of the specified element. |
![]() ![]() | SetName | Sets the Name attached property of the specified element. |
![]() | SetValue(DependencyProperty, Object) | Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.) |
![]() | SetValue(DependencyPropertyKey, Object) | Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.) |
![]() | ShouldSerializeProperty | Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
| Name | Description | |
|---|---|---|
![]() ![]() | KeepAliveProperty | Identifies the KeepAlive attached property. |
![]() ![]() | NameProperty | Identifies the Name attached property. |
Windows Presentation Foundation (WPF) implements a navigation history service that stores one entry for each piece of content that has been previously navigated to, just like navigation history in Microsoft Internet Explorer. Navigation history comprises two stacks, one that remembers back navigation history, and one that remembers forward navigation history.
An entry for the current item is added to back navigation history when a forward navigation occurs. This occurs in the following situations:
The Navigate method is called (NavigationService::Navigate, NavigationWindow::Navigate, Frame::Navigate).
The GoForward method is called (NavigationService::GoForward, NavigationWindow::GoForward, Frame::GoForward).
The forward button on the navigation UI that is displayed from the current navigator (XBAP, NavigationWindow, Frame).
Likewise, an entry for the current item is added to forward navigation history before a back navigation occurs, which happens when:
The GoBack method is called (NavigationService::GoBack, NavigationWindow::GoBack, Frame::GoBack).
The back button on the navigation UI that is displayed from the current navigator (XBAP, NavigationWindow, Frame).
Each entry in back and forward navigation history is an instance of the JournalEntry class.
Each JournalEntry object encapsulates information about a particular navigation, including a name for the entry (Name), whether the entry is kept alive (KeepAlive) and the uniform resource identifier (URI) for the content that is navigated to (Source).
You can retrieve all the JournalEntry objects in back navigation history by enumerating the NavigationWindow::BackStack or Frame::BackStack properties. For forward navigation history, you can retrieve all the JournalEntry objects by enumerating the NavigationWindow::ForwardStack or Frame::ForwardStack properties.
If you need to remove the most recent JournalEntry object from back navigation history, to prevent navigation to it, for example, you can call the RemoveBackEntry method (NavigationService::RemoveBackEntry, NavigationWindow::RemoveBackEntry, Frame::RemoveBackEntry), which removes the JournalEntry object and returns a reference to it.
You cannot add JournalEntry objects to navigation history, however, because you can neither instantiate nor derive from JournalEntry, and because no type implements a member to do so. However, you can add custom CustomContentState objects to back navigation history by calling the AddBackEntry method (AddBackEntry, AddBackEntry, AddBackEntry); NavigationService adds the CustomContentState object to an internally-created JournalEntry object, which is then added to the back navigation history.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
