This documentation is archived and is not being maintained.

JournalEntryUnifiedViewConverter Class

JournalEntryUnifiedViewConverter merges navigation back history and navigation forward history (as exposed by Frame or NavigationWindow) into a single, Windows Internet Explorer 7-style navigation menu.


Namespace:  System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public sealed class JournalEntryUnifiedViewConverter : IMultiValueConverter
<JournalEntryUnifiedViewConverter .../>

The JournalEntryUnifiedViewConverter type exposes the following members.

Public methodJournalEntryUnifiedViewConverterInitializes a new instance of the JournalEntryUnifiedViewConverter class.

Public attached propertyJournalEntryPositionGets or sets a value that specifies whether an entry is in back navigation history, forward navigation history, or is the current content of a navigator.

Public methodConvertMerges two navigation history stacks.
Public methodConvertBackNot implemented.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetJournalEntryPositionGets the JournalEntryPosition attached property for the specified element.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSetJournalEntryPositionSets the JournalEntryPositionProperty attached property of the specified element.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public fieldStatic memberJournalEntryPositionPropertyIdentifies the JournalEntryPosition attached property.

Both Frame and NavigationWindow display navigation chrome that supports history navigation using the following mechanisms:

  • A button for navigating back one piece of content at a time.

  • A button for navigating forward one piece of content at a time.

  • An Windows Internet Explorer 7-style drop-down list that shows:

    • A combined list of up to nine items in back navigation history and up to nine items in forward navigation history.

    • The position of the current piece of content with respect to both back and forward navigation history.

The navigation history is stored by both NavigationWindow and Frame in the following properties:

Back Navigation History: Frame.BackStack, NavigationWindow.BackStack.

Forward Navigation History: Frame.ForwardStack, NavigationWindow.ForwardStack.

To create the Windows Internet Explorer 7-style drop-down list, NavigationWindow and Frame use JournalEntryUnifiedViewConverter to merge their individual back navigation history and forward navigation history into a single list of navigation history entries. The resulting list contains up to nine entries from back navigation history and up to nine entries from forward navigation history, plus an entry for the current content.

If you create custom navigation UI, and need to provide an Windows Internet Explorer 7-style drop-down list, you can use JournalEntryUnifiedViewConverter to similar effect.

XAML Attribute Usage

This class is not typically used in XAML.

The following example shows how to construct a text-based navigation history menu. The menu uses JournalEntryUnifiedViewConverter to combine both the back and forward navigation histories of the hosted Frame navigator.



        <presentationFramework:JournalEntryUnifiedViewConverter x:Key="JournalEntryUnifiedViewConverter" />

        <!--MenuItem data template-->
        <DataTemplate x:Key="JournalEntryMenuItemTemplate">
            <MenuItem VerticalContentAlignment="Center" Command="NavigationCommands.NavigateJournal" CommandTarget="{Binding ElementName=frame}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}">
                            <TextBlock Text="{Binding (JournalEntryUnifiedViewConverter.JournalEntryPosition)}" FontWeight="Bold"></TextBlock>
                            <LineBreak />
                            <TextBlock Text="{Binding Path=Name}" />



        <!--Unified navigation history menu-->
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="Unified Navigation History" ItemTemplate="{DynamicResource JournalEntryMenuItemTemplate}">
                    <MultiBinding Converter="{StaticResource JournalEntryUnifiedViewConverter}">
                            <Binding ElementName="frame" Path="BackStack"/>
                            <Binding ElementName="frame" Path="ForwardStack" />

        <!--Navigator (Frame with its navigation chrome hidden-->
        <Frame Name="frame" NavigationUIVisibility="Hidden" Source="HomePage.xaml" />



.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.