'Declaration Public Sub InitializeHistory( _ ByVal backHistory() As NavigationHistoryItem, _ ByVal forwardHistory() As NavigationHistoryItem, _ ByVal currentItem As NavigationHistoryItem _ )
public void InitializeHistory( NavigationHistoryItem[] backHistory, NavigationHistoryItem[] forwardHistory, NavigationHistoryItem currentItem )
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.
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")); }
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