Version

InitializeHistory Method

Creates the navigation history from the specified parameters.
Syntax
'Declaration
 
Public Sub InitializeHistory( _
   ByVal backHistory() As NavigationHistoryItem, _
   ByVal forwardHistory() As NavigationHistoryItem, _
   ByVal currentItem As NavigationHistoryItem _
) 

Parameters

backHistory
An array of NavigationHistoryItem objects. Can be null.
forwardHistory
An array of NavigationHistoryItem objects. Can be null.
currentItem
The NavigationHistoryItem to set as the current item. Cannot be null.
Remarks

The elements in each of the history arrays should be ordered by their navigation history. For example, the first item of the back history array should be the element that will appear at the bottom of the recent files list; in other words, this should be the item that is the furthest back from the current item. It may be easiest to think of ordering the elements as a timeline, where each array is ordered from oldest to newest.

Example
The following code snippet creates a navigation history with "1" and "2" as the previous items, "3" as the current item, and "4" and "5" as the items in the forward history.

Imports Infragistics.Win.UltraWinToolbars
 
Private Sub btnInitialize_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
	Dim backHistory As NavigationHistoryItem() = New NavigationHistoryItem() {New NavigationHistoryItem("1"), New NavigationHistoryItem("2")}
	Dim forwardHistory As NavigationHistoryItem() = New NavigationHistoryItem() {New NavigationHistoryItem("4"), New NavigationHistoryItem("5")}

	Me.UltraToolbarsManager1.NavigationToolbar.InitializeHistory(backHistory, forwardHistory, New NavigationHistoryItem("3"))
End Sub
using Infragistics.Win.UltraWinToolbars;

private void btnInitialize_Click(object sender, EventArgs e)
{
    NavigationHistoryItem[] backHistory = new NavigationHistoryItem[] {
        new NavigationHistoryItem("1"),
        new NavigationHistoryItem("2"),
    };

    NavigationHistoryItem[] forwardHistory = new NavigationHistoryItem[] {
        new NavigationHistoryItem("4"),
        new NavigationHistoryItem("5"),
    };

    this.ultraToolbarsManager1.NavigationToolbar.InitializeHistory(backHistory, forwardHistory, new NavigationHistoryItem("3"));
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also