Is is possible to get to the Scrollviewer in the xamWebTree control to allow me to style it. I've got a Scrollviewer style already defined that I use elsewhere in the application and I'd like to make everything look the same.
Many thanks.
Many thanks Vlad - that's sorted things!
We use a ScrollViewer in the default template of the XamWebTree to scroll the items so you can just apply your style directly to this element. The default styles for the tree are usually located in NetAdvantage 2010.1\Silverlight\Default Styles\XamWebTree.xaml:
<ScrollViewer IsTabStop="False" BorderThickness="0" TabNavigation="Once" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Style={StaticResource customScrollViewerStyle}> <ItemsPresenter /></ScrollViewer>
For more details check the attached sample project.
I hope this helps