Can someone please help me to know how I can add tooltip for Treeview control on hover?
You just need to bind it or set directly to ToolTipService.ToolTip
.
<TreeView
Grid.Column="0"
ItemsSource="{x:Bind ViewModel.Items, Mode=OneWay}">
<TreeView.ItemTemplate>
<DataTemplate x:DataType="local:Item">
<TreeViewItem
Content="{x:Bind Name}"
ItemsSource="{x:Bind Children}"
ToolTipService.ToolTip="{x:Bind Tip, Mode=OneWay}" />
</DataTemplate>
</TreeView.ItemTemplate>
</TreeView>