Skip to content

Commit 8ac6d97

Browse files
committed
Adjust sample code indent for AcrylicBrushPage
1 parent 05584cc commit 8ac6d97

File tree

1 file changed

+16
-38
lines changed

1 file changed

+16
-38
lines changed

source/iNKORE.UI.WPF.Modern.Gallery/Pages/Controls/Windows/AcrylicPage.xaml.cs

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -109,46 +109,27 @@ private void UpdateExampleCode()
109109
";
110110

111111
string Example3Xaml => $@"
112-
<Grid
113-
x:Name=""Example3Grid""
114-
Width=""320""
115-
Height=""200""
112+
<Grid x:Name=""Example3Grid""
113+
Width=""320"" Height=""200""
116114
HorizontalAlignment=""Left"">
117115
<Grid x:Name=""Acrylic3Grid""
118116
Background=""{{DynamicResource {{x:Static ui:ThemeKeys.SolidBackgroundFillColorBaseBrushKey}}}}"">
119-
<Rectangle
120-
Width=""100""
121-
Height=""200""
122-
HorizontalAlignment=""Left""
123-
VerticalAlignment=""Top""
124-
Fill=""Aqua"" />
125-
<Ellipse
126-
Width=""152""
127-
Height=""152""
128-
HorizontalAlignment=""Center""
129-
VerticalAlignment=""Center""
130-
Fill=""Magenta"" />
131-
<Rectangle
132-
Width=""80""
133-
Height=""100""
134-
HorizontalAlignment=""Right""
135-
VerticalAlignment=""Bottom""
136-
Fill=""Yellow"" />
117+
<Rectangle Width=""100"" Height=""200"" Fill=""Aqua""
118+
HorizontalAlignment=""Left"" VerticalAlignment=""Top"" />
119+
<Ellipse Width=""152"" Height=""152"" Fill=""Magenta""
120+
HorizontalAlignment=""Center"" VerticalAlignment=""Center"" />
121+
<Rectangle Width=""80"" Height=""100"" Fill=""Yellow""
122+
HorizontalAlignment=""Right"" VerticalAlignment=""Bottom"" />
137123
</Grid>
138-
<ui:AcrylicPanel
139-
x:Name=""CustomAcrylicShapeInApp""
140-
Margin=""12""
141-
Target=""{{Binding ElementName=Acrylic3Grid}}""
142-
TintColor=""${CustomAcrylicShapeInApp.TintColor.ToHEX()}""
143-
TintOpacity=""${CustomAcrylicShapeInApp.TintOpacity.ToString()}"" />
124+
<ui:AcrylicPanel x:Name=""CustomAcrylicShapeInApp""
125+
Margin=""12"" Target=""{{Binding ElementName=Acrylic3Grid}}""
126+
TintColor=""${CustomAcrylicShapeInApp.TintColor.ToHEX()}"" TintOpacity=""${CustomAcrylicShapeInApp.TintOpacity.ToString()}"" />
144127
</Grid>
145128
";
146129

147130
string Example4Xaml => $@"
148-
<Grid
149-
x:Name=""Example4Grid""
150-
Width=""320""
151-
Height=""200""
131+
<Grid x:Name=""Example4Grid""
132+
Width=""320"" Height=""200""
152133
HorizontalAlignment=""Left"">
153134
<Grid x:Name=""Acrylic4Grid""
154135
Background=""{{DynamicResource {{x:Static ui:ThemeKeys.SolidBackgroundFillColorBaseBrushKey}}}}"">
@@ -171,13 +152,10 @@ private void UpdateExampleCode()
171152
VerticalAlignment=""Bottom""
172153
Fill=""Yellow"" />
173154
</Grid>
174-
<ui:AcrylicPanel
175-
x:Name=""CustomAcrylicShapeLumin""
176-
Margin=""12""
155+
<ui:AcrylicPanel x:Name=""CustomAcrylicShapeLumin""
156+
Margin=""12"" TintColor=""SkyBlue""
177157
Target=""{{Binding ElementName=Acrylic4Grid}}""
178-
TintColor=""SkyBlue""
179-
TintOpacity=""{CustomAcrylicShapeLumin.TintOpacity.ToString()}""
180-
Amount=""{CustomAcrylicShapeLumin.Amount.ToString()}"" />
158+
TintOpacity=""{CustomAcrylicShapeLumin.TintOpacity.ToString()}"" Amount=""{CustomAcrylicShapeLumin.Amount.ToString()}"" />
181159
</Grid>
182160
";
183161

0 commit comments

Comments
 (0)