I have a WPF WebBrowser control beside a WPF TreeView control. Both have default styles with default properties. I have not changed anything except placing them on my WPF window. If you view the screen shot below you can see the two controls have two different scroll bars. I have no idea why this is happening.
Is there a way to make one control’s scroll bar look like the other, or just default them both to windows styles?
Thanks

To answer your comment:
Yes.
Option 1
You can override the default style for a control like so:
This will change the styling for every TreeView control (assuming the style is defined in your App.xaml dictionary). If you only want to override the style for a few controls, you can name it:
And the set the style explicitly for those controls (
<TreeView Style="{StaticResource XTreeViewStyle}"/>). Or, you can create the style within a specific context, such as a Grid (thus affecting only those controls within the Grid):It is my guess that the style which is overriding your scrollbars is not targeting TreeViews specifically… it is probably targeting a control that TreeView inherits from. So, look for a default style which targets TreeView, ItemsControl, Control, FrameworkElement or UIElement. When you find it, you can either give it a name, or move the style into a more limited context.
For example, your styles are probably set up something like this:
To have the ItemsControl style only affect the Ribbon, you could move the ItemsControl style into the Ribbon’s template:
The exact approach, however, is going to depend on how exactly your styles are setup, and this may be much more complicated then I have suggested. For example, if you have several different styles which all need to use that ItemsControl style, you might use naming and inheritance like this:
Option 2
Set the style for the TreeView explicitly. This will mean finidng the original style for the TreeView (or at least the one you want to use), giving it a name and then setting explicitly on the TreeView you want to style. (See Option 2 for how to do that)
I believe that these links will provide you with default styles: