Is there a way to ALWAYS show scrollbars for the XamTree?
Hi,
You can set the scrollbar visibility in code behind using the following snippet:
xwTree.SetValue( ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);xwTree.SetValue( ScrollViewer.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);
where xwTree is a XamTree reference.
How do I set the scrollbar visibility in the code behind? I am not seeing a property for this...
If I have globally defined scroll bar x:key name 'scrl', how do I apply this globally defined scrollbar style here.
If you want to change the style of the scrollbars you have to retemplate the XamTree and set style on the ScrollViewer used in the ControlTemplate.
You can use Blend to style the control - https://ko.infragistics.com/help/wpf/xamdatagrid-designing-the-look-and-feel
Or if you do not have blend you can use the generic.xaml file of the control - https://ko.infragistics.com/help/wpf/designersguide-location-of-generic-xaml-file
How do I apply custom style to XamTree scroll-bar?