tags:

views:

124

answers:

3

Hi, I changed the template of the ListBox. The problem is, look at the vertical Scrollbar: http://img223.imageshack.us/img223/3391/lisbox.jpg

how to make it lie within ths rounded ListBox ?

A: 

Hmm but is there a possibility to make it covered a bit by this rounded corner ?

Tony
A: 

anyone knows? (Sorry for spamming, but it's very important for me)

Tony
Do you want it inside the arcs (ie moved left) or masked by the arcs?
Simeon Pilgrim
+1  A: 

If your wanting the scrollbar more left

make it lie within ths rounded ListBox

Then add a margin to your ScrollViewer section of the ListBox template like this:

<ScrollViewer Focusable="false"  Margin="0,0,20,0">
    <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>

If you want the background of the ScrollViewer to match the ListBox background you'll need to replace the Style template for this also.

<ScrollViewer Focusable="false"  Template="{DynamicResource ScrollViewerControlTemplate1}" >
    <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
Simeon Pilgrim