Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Styling the Scrollviewer in xamWebTree
posted

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.

Parents
No Data
Reply
  • 9836
    posted

    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

    Tree.zip
Children