Skip to content

Commit b16f2a5

Browse files
ES-975464 - Added the image
1 parent b8bfcd2 commit b16f2a5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ModifiedHeightBasedOnContent.png

76.8 KB
Loading

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# How to autofit item height based on content in WPF TreeView
1+
# How to Autofit Item Height Based on Content in WPF TreeView?
22

3-
This repository describes how to autofit item height based on content in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treeview) (SfTreeView)
3+
This repository describes how to autofit item height based on content in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treeview) (SfTreeView).
44

55
The `TreeView` allows adjusting height of items based on the content measured size while loaded by setting the `Height` argument with value returned from [QueryNodeSizeEventArgs.GetAutoFitNodeHeight](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.QueryNodeSizeEventArgs.html#Syncfusion_UI_Xaml_TreeView_QueryNodeSizeEventArgs_GetAutoFitNodeHeight) method.
66

@@ -34,4 +34,6 @@ private void SfTreeView_QueryNodeSize(object sender, Syncfusion.UI.Xaml.TreeView
3434
e.Handled = true;
3535
}
3636
}
37-
```
37+
```
38+
39+
![TreeView with modified the item height based on the content](ModifiedHeightBasedOnContent.png)

0 commit comments

Comments
 (0)