Hi I am building a control that shows a ruler from 0 to a maximum. The 0 value is at the bottom and the maximum is in a higher y then the 0(The maximum is not visible until we scroll to it). The problem is that while 0 is down and the maximum is up. The 0 value of the scroll bar is up and the maximum is down. I want that the scroll bar will be flipped. How can I do that ?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
How about using a value converter to negate your Minimum, Maximum and Value properties. That way the scrollbar will act as though you flipped it.
code:
xaml:
Dudes, think simple:
Regards
I got inspired by some answers here and decided to add mine for further reference.
For the scrollbar it doesn't really matter whether it is rotated 180 degrees or flipped upside down but for other controls (or some style) it may be important.
Here's my code: