|
34 | 34 | ClipToBounds="True"> |
35 | 35 | <Border Margin="{TemplateBinding Padding}"> |
36 | 36 | <VisualLayerManager> |
37 | | - <Border> |
38 | | - <ContentPresenter Name="PART_ContentPresenter" |
39 | | - ContentTemplate="{TemplateBinding ContentTemplate}" |
40 | | - Content="{TemplateBinding Content}" |
41 | | - HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
42 | | - VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
43 | | - </Border> |
| 37 | + <LayoutTransformControl> |
| 38 | + <LayoutTransformControl.LayoutTransform> |
| 39 | + <ScaleTransform ScaleX="{Binding Source={x:Static vm:Preferences.Instance}, Path=Zoom, Mode=OneWay}" |
| 40 | + ScaleY="{Binding Source={x:Static vm:Preferences.Instance}, Path=Zoom, Mode=OneWay}"/> |
| 41 | + </LayoutTransformControl.LayoutTransform> |
| 42 | + |
| 43 | + <Border> |
| 44 | + <ContentPresenter Name="PART_ContentPresenter" |
| 45 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 46 | + Content="{TemplateBinding Content}" |
| 47 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 48 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
| 49 | + </Border> |
| 50 | + </LayoutTransformControl> |
44 | 51 | </VisualLayerManager> |
45 | 52 | </Border> |
46 | 53 | </Border> |
|
129 | 136 | BorderThickness="1" |
130 | 137 | CornerRadius="{TemplateBinding CornerRadius}"> |
131 | 138 | <VisualLayerManager> |
132 | | - <Border CornerRadius="{TemplateBinding CornerRadius}" ClipToBounds="True"> |
133 | | - <ContentPresenter Name="PART_ContentPresenter" |
134 | | - ContentTemplate="{TemplateBinding ContentTemplate}" |
135 | | - Content="{TemplateBinding Content}" |
136 | | - HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
137 | | - VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
138 | | - </Border> |
| 139 | + <LayoutTransformControl> |
| 140 | + <LayoutTransformControl.LayoutTransform> |
| 141 | + <ScaleTransform ScaleX="{Binding Source={x:Static vm:Preferences.Instance}, Path=Zoom, Mode=OneWay}" |
| 142 | + ScaleY="{Binding Source={x:Static vm:Preferences.Instance}, Path=Zoom, Mode=OneWay}"/> |
| 143 | + </LayoutTransformControl.LayoutTransform> |
| 144 | + |
| 145 | + <Border CornerRadius="{TemplateBinding CornerRadius}" ClipToBounds="True"> |
| 146 | + <ContentPresenter Name="PART_ContentPresenter" |
| 147 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 148 | + Content="{TemplateBinding Content}" |
| 149 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 150 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
| 151 | + </Border> |
| 152 | + </LayoutTransformControl> |
139 | 153 | </VisualLayerManager> |
140 | 154 | </Border> |
141 | 155 | </Grid> |
|
0 commit comments