Hy.
Could you help me create the fallowing control style/template?
What do I need:
- A (Vertical and Horizontal) ScollBar Style like that. (Without the two arrow button)
- Inner sh开发者_开发百科adow on the top and bottom of the "ScrollViewer area". That's all I need, I can create the rest parts of the control. (Selected Item's color etc) Thank you.
The scrollbar control in WPF can be thought of as collection of the two repeatbuttons and the track part. You can change the template of the scrollbar and remove the repeatbutton.
For the shadow part, you need to provide the the Zorder index. Refer to the following link - WPF shadow on stackpanel controls
I know is too late for an answer but Style is very easy to get if you understand basic templating. Here you will find a Scrollbar that emulate the one you want, hope you like it.
精彩评论