@@ -29,29 +29,19 @@ public static IControlTemplate ScrollViewerTemplate()
29
29
{
30
30
Name = "PART_ContentPresenter" ,
31
31
[ ~ ContentPresenter . ContentProperty ] = x [ ~ ContentControl . ContentProperty ] ,
32
- [ ~ ~ ScrollContentPresenter . ExtentProperty ] = x [ ~ ~ ScrollViewer . ExtentProperty ] ,
33
32
[ ~ ~ ScrollContentPresenter . OffsetProperty ] = x [ ~ ~ ScrollViewer . OffsetProperty ] ,
34
- [ ~ ~ ScrollContentPresenter . ViewportProperty ] = x [ ~ ~ ScrollViewer . ViewportProperty ] ,
35
- [ ~ ScrollContentPresenter . CanHorizontallyScrollProperty ] = x [ ~ ScrollViewer . CanHorizontallyScrollProperty ] ,
36
- [ ~ ScrollContentPresenter . CanVerticallyScrollProperty ] = x [ ~ ScrollViewer . CanVerticallyScrollProperty ] ,
37
33
} . RegisterInNameScope ( ns ) ,
38
34
new ScrollBar
39
35
{
40
36
Name = "horizontalScrollBar" ,
41
37
Orientation = Orientation . Horizontal ,
42
- [ ~ RangeBase . MaximumProperty ] = x [ ~ ScrollViewer . HorizontalScrollBarMaximumProperty ] ,
43
- [ ~ ~ RangeBase . ValueProperty ] = x [ ~ ~ ScrollViewer . HorizontalScrollBarValueProperty ] ,
44
- [ ~ ScrollBar . ViewportSizeProperty ] = x [ ~ ScrollViewer . HorizontalScrollBarViewportSizeProperty ] ,
45
38
[ ~ ScrollBar . VisibilityProperty ] = x [ ~ ScrollViewer . HorizontalScrollBarVisibilityProperty ] ,
46
39
[ Grid . RowProperty ] = 1 ,
47
40
} . RegisterInNameScope ( ns ) ,
48
41
new ScrollBar
49
42
{
50
43
Name = "verticalScrollBar" ,
51
44
Orientation = Orientation . Vertical ,
52
- [ ~ RangeBase . MaximumProperty ] = x [ ~ ScrollViewer . VerticalScrollBarMaximumProperty ] ,
53
- [ ~ ~ RangeBase . ValueProperty ] = x [ ~ ~ ScrollViewer . VerticalScrollBarValueProperty ] ,
54
- [ ~ ScrollBar . ViewportSizeProperty ] = x [ ~ ScrollViewer . VerticalScrollBarViewportSizeProperty ] ,
55
45
[ ~ ScrollBar . VisibilityProperty ] = x [ ~ ScrollViewer . VerticalScrollBarVisibilityProperty ] ,
56
46
[ Grid . ColumnProperty ] = 1 ,
57
47
} . RegisterInNameScope ( ns ) ,
0 commit comments