Version

Change the Vertical Scrolling Behavior of a Scrollbar

There are two settings that control the WinTree’s™ vertical scrolling behavior. These settings are determined by the ScrollBounds property. Setting the ScrollBounds property to ScrollToLastItem (the default setting) will scroll the tree all the way down so only the last node is visible. Setting the ScrollBounds property to ScrollToFill will scroll the tree in such a way that the last node is at the bottom of the control’s viewable area.

The following code demonstrates how to set the ScrollBounds property to ScrollToFill.

In Visual Basic:

Imports Infragistics.Win.UltraWinTree
...
Private Sub _Load(ByVal sender As  System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraTree1.ScrollBounds = ScrollBounds.ScrollToFill
End Sub

In C#:

using Infragistics.Win.UltraWinTree;
...
private void HowtoChangetheVerticalScrollingBehavioroftheScrollbar_Load(
  object sender, EventArgs e)
{
	this.ultraTree1.ScrollBounds = ScrollBounds.ScrollToFill;
}

ScrollToLastItem

ultratree's scrolling behavior set to scrolltolastitem

ScrollToFill

ultratree's scrolling behavior set to scrolltofill