Skip to content

Commit 6ceaa68

Browse files
Update README.md
1 parent 47ede25 commit 6ceaa68

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# How to bring the tree node into view by scrolling in WPF TreeView
1+
# How to Bring the Tree Node into View by Scrolling in WPF TreeView?
22

33
This repository describes how to bring the tree node into view by scrolling in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treeview) (SfTreeView).
44

@@ -48,6 +48,8 @@ private void BringIntoView_Click(object sender, RoutedEventArgs e)
4848
}
4949
```
5050

51+
**Note:** We need to set the [NodePopulationMode](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_NodePopulationMode) API value as `TreeNodePopulationMode.Instant` for scrolling to the collapsed item in addition to the additional parameter passed to the `BringIntoView` method.
52+
5153
### Scroll the item into specified position
5254

5355
The fourth optional parameter `scrollToPosition` in `BringIntoView` method allows to position the scrolled item in the view. The scrolled item can take either of the four positions as explained below. The default position is `Start`.
@@ -65,4 +67,4 @@ private void BringIntoView_Click(object sender, RoutedEventArgs e)
6567
// Scrolls to the data item to make visible in the view.
6668
sfTreeView.BringIntoView(data,false,true,ScrollToPosition.MakeVisible);
6769
}
68-
```
70+
```

0 commit comments

Comments
 (0)