|
47 | 47 | <Setter.Value>
|
48 | 48 | <ControlTemplate TargetType="{x:Type Thumb}">
|
49 | 49 | <Grid x:Name="Grid">
|
50 |
| - <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent"/> |
51 | 50 | <Border x:Name="Rectangle1" CornerRadius="5" HorizontalAlignment="Stretch"
|
52 | 51 | VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="{TemplateBinding Background}"/>
|
53 | 52 | </Grid>
|
54 |
| - <ControlTemplate.Triggers> |
55 |
| - <Trigger Property="Tag" Value="Horizontal"> |
56 |
| - <Setter TargetName="Rectangle1" Property="Width" Value="Auto"/> |
57 |
| - <Setter TargetName="Rectangle1" Property="Height" Value="7"/> |
58 |
| - </Trigger> |
59 |
| - </ControlTemplate.Triggers> |
60 | 53 | </ControlTemplate>
|
61 | 54 | </Setter.Value>
|
62 | 55 | </Setter>
|
|
67 | 60 | <Setter.Value>
|
68 | 61 | <ControlTemplate TargetType="{x:Type Thumb}">
|
69 | 62 | <Grid x:Name="Grid">
|
70 |
| - <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent"/> |
71 | 63 | <Border x:Name="Rectangle1" CornerRadius="5" HorizontalAlignment="Stretch"
|
72 | 64 | VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="{TemplateBinding Background}"/>
|
73 | 65 | </Grid>
|
74 |
| - <ControlTemplate.Triggers> |
75 |
| - <Trigger Property="Tag" Value="Horizontal"> |
76 |
| - <Setter TargetName="Rectangle1" Property="Width" Value="Auto"/> |
77 |
| - <Setter TargetName="Rectangle1" Property="Height" Value="7"/> |
78 |
| - </Trigger> |
79 |
| - </ControlTemplate.Triggers> |
80 | 66 | </ControlTemplate>
|
81 | 67 | </Setter.Value>
|
82 | 68 | </Setter>
|
|
142 | 128 | </Style>
|
143 | 129 |
|
144 | 130 | <!-- ScrollViewer -->
|
145 |
| - <Style x:Key="ScrollViewerStyle" TargetType="{x:Type ScrollViewer}"> |
| 131 | + <Style x:Key="ScrollViewerStyle" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}"> |
146 | 132 | <Setter Property="OverridesDefaultStyle" Value="True"/>
|
147 |
| - <Setter Property="FlowDirection" Value="LeftToRight"/> |
148 | 133 | <Setter Property="Template">
|
149 | 134 | <Setter.Value>
|
150 | 135 | <ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
0 commit comments