Skip to content

Commit 94ad9ca

Browse files
Apply XAML Styler
1 parent 35d0230 commit 94ad9ca

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

components/Adorners/samples/ResizeElement/ResizeElementAdornerCanvasSample.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<Page x:Class="AdornersExperiment.Samples.ResizeElement.ResizeElementAdornerCanvasSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -17,8 +17,8 @@
1717
Height="100"
1818
Fill="Red">
1919
<ui:AdornerLayer.Xaml>
20-
<!-- TODO: Maybe have this be toggled based on a focus-based selection in the sample? -->
21-
<adorners:ResizeElementAdorner Visibility="{x:Bind IsAdornerVisible, Mode=OneWay}"/>
20+
<!-- TODO: Maybe have this be toggled based on a focus-based selection in the sample? -->
21+
<adorners:ResizeElementAdorner Visibility="{x:Bind IsAdornerVisible, Mode=OneWay}" />
2222
</ui:AdornerLayer.Xaml>
2323
</Rectangle>
2424
</Canvas>

components/Adorners/src/ResizeElement/ResizeElementAdorner.xaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:adorners="using:CommunityToolkit.WinUI.Adorners"
@@ -15,47 +15,47 @@
1515
<Setter.Value>
1616
<ControlTemplate TargetType="adorners:ResizeElementAdorner">
1717
<Grid BorderBrush="{ThemeResource SurfaceStrokeColorDefaultBrush}"
18-
BorderThickness="1">
18+
BorderThickness="1">
1919
<controls:ResizeThumb x:Name="TopThumbPart"
20-
Margin="0,-8,0,0"
21-
HorizontalAlignment="Center"
22-
VerticalAlignment="Top"
23-
Direction="Top" />
20+
Margin="0,-8,0,0"
21+
HorizontalAlignment="Center"
22+
VerticalAlignment="Top"
23+
Direction="Top" />
2424
<controls:ResizeThumb x:Name="BottomThumbPart"
25-
Margin="0,0,0,-8"
26-
HorizontalAlignment="Center"
27-
VerticalAlignment="Bottom"
28-
Direction="Bottom" />
25+
Margin="0,0,0,-8"
26+
HorizontalAlignment="Center"
27+
VerticalAlignment="Bottom"
28+
Direction="Bottom" />
2929
<controls:ResizeThumb x:Name="LeftThumbPart"
30-
Margin="-8,0,0,0"
31-
HorizontalAlignment="Left"
32-
VerticalAlignment="Center"
33-
Direction="Left" />
30+
Margin="-8,0,0,0"
31+
HorizontalAlignment="Left"
32+
VerticalAlignment="Center"
33+
Direction="Left" />
3434
<controls:ResizeThumb x:Name="RightThumbPart"
35-
Margin="0,0,-8,0"
36-
HorizontalAlignment="Right"
37-
VerticalAlignment="Center"
38-
Direction="Right" />
35+
Margin="0,0,-8,0"
36+
HorizontalAlignment="Right"
37+
VerticalAlignment="Center"
38+
Direction="Right" />
3939
<controls:ResizeThumb x:Name="TopLeftThumbPart"
40-
Margin="-8,-8,0,0"
41-
HorizontalAlignment="Left"
42-
VerticalAlignment="Top"
43-
Direction="TopLeft" />
40+
Margin="-8,-8,0,0"
41+
HorizontalAlignment="Left"
42+
VerticalAlignment="Top"
43+
Direction="TopLeft" />
4444
<controls:ResizeThumb x:Name="TopRightThumbPart"
45-
Margin="0,-8,-8,0"
46-
HorizontalAlignment="Right"
47-
VerticalAlignment="Top"
48-
Direction="TopRight"/>
45+
Margin="0,-8,-8,0"
46+
HorizontalAlignment="Right"
47+
VerticalAlignment="Top"
48+
Direction="TopRight" />
4949
<controls:ResizeThumb x:Name="BottomLeftThumbPart"
50-
Margin="-8,0,0,-8"
51-
HorizontalAlignment="Left"
52-
VerticalAlignment="Bottom"
53-
Direction="BottomLeft" />
50+
Margin="-8,0,0,-8"
51+
HorizontalAlignment="Left"
52+
VerticalAlignment="Bottom"
53+
Direction="BottomLeft" />
5454
<controls:ResizeThumb x:Name="BottomRightThumbPart"
55-
Margin="0,0,-8,-8"
56-
HorizontalAlignment="Right"
57-
VerticalAlignment="Bottom"
58-
Direction="BottomRight" />
55+
Margin="0,0,-8,-8"
56+
HorizontalAlignment="Right"
57+
VerticalAlignment="Bottom"
58+
Direction="BottomRight" />
5959
</Grid>
6060
</ControlTemplate>
6161
</Setter.Value>

0 commit comments

Comments
 (0)