![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | ScrollViewer: how set SmallChange value on system.windows.form the SmallChange value is set as: scrollableControl.HorizontalScroll.SmallChange = 50 how can i do it the same on WPF System.Windows.Controls.ScrollViewer? The ScrollViewer control encapsulates ScrollBar the ScrollBar a RangeBase.SmallChange, bud how can i set this values? thanks anton |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: ScrollViewer: how set SmallChange value i have found the solution to set the SmallChange ScrollBar sb = MyScrollViewer.Template.FindName("PART_VerticalScrollBar", scrollMy) as scrollBar; sb.Maximum = 600; sb.SmallChange = sb.Maximum / 20; BUT...!!! sb.SmallChange can set now bat have no effect on scrollbar however sb.Maximum is function correcly. My problem is that i need fixed size (30 pixel) when scrolling with scroll button. have anybody an idea why SmallChange have no effect or make it otherwise. thanks anton |
My System Specs![]() |
| | #3 (permalink) |
| Guest | RE: ScrollViewer: how set SmallChange value i have found a solution to set the SmallChange value double d = 30.0; ScrollBar sb = MyScroll.Template.FindName("PART_VerticalScrollBar", MyScroll) as ScrollBar; sb.SetValue(ScrollBar.SmallChangeProperty, d); or sb.SmallChange = d; BUT!.... sb.SmallChange or sb.SetValue(..) don't have effect where sb.Maximum = 100 is work correctly. have anybody an idea why? my problem is that the scrollbar should have a fixed scrolling size when click on scrobar because my lines are 30 pixel height. thanks anton |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ScrollViewer breaks my WrapPanel | steve | Avalon | 3 | 04-06-2007 06:27 PM |
| I can't get set HorizontalOffset on a ScrollViewer (bug in Nov CTP?) | Philippe Lavoie | Avalon | 2 | 01-10-2006 03:52 PM |