Skip to content

Commit 11384ff

Browse files
Fix XAML Styling
1 parent 581f74c commit 11384ff

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

components/Adorners/samples/InPlaceTextEditor/InPlaceTextEditorAdornerSample.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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.InPlaceTextEditor.InPlaceTextEditorAdornerSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:local="using:AdornersExperiment.Samples.InPlaceTextEditor"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
@@ -70,13 +70,13 @@
7070
<StackPanel Spacing="8">
7171
<TextBlock Text="Click the editable text below to edit:" />
7272

73-
<!-- We set the DataContext here for our Adorner to retrieve the IEditableObject reference -->
74-
<!-- We use TwoWay binding to ensure the updates from the Adorner are reflected in the ViewModel -->
73+
<!-- We set the DataContext here for our Adorner to retrieve the IEditableObject reference -->
74+
<!-- We use TwoWay binding to ensure the updates from the Adorner are reflected in the ViewModel -->
7575
<TextBlock DataContext="{x:Bind ViewModel}"
7676
Text="{x:Bind ViewModel.MyText, Mode=TwoWay}">
7777
<ui:AdornerLayer.Xaml>
78-
<!-- Style manually set here as local to example -->
79-
<local:InPlaceTextEditorAdorner Style="{StaticResource DefaultInPlaceTextEditorAdornerStyle}"/>
78+
<!-- Style manually set here as local to example -->
79+
<local:InPlaceTextEditorAdorner Style="{StaticResource DefaultInPlaceTextEditorAdornerStyle}" />
8080
</ui:AdornerLayer.Xaml>
8181
</TextBlock>
8282
</StackPanel>

components/Adorners/samples/InputValidation/InputValidationAdorner.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
<ResourceDictionary x:Class="AdornersExperiment.Samples.InputValidation.InputValidationAdornerResources"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -23,14 +23,14 @@
2323
VerticalContentAlignment="Stretch">
2424
<ContentControl.ContentTemplate>
2525
<DataTemplate x:DataType="local:InputValidationAdorner">
26-
<Grid Visibility="{x:Bind HasValidationFailed, Mode=OneWay}" >
26+
<Grid Visibility="{x:Bind HasValidationFailed, Mode=OneWay}">
2727
<Rectangle Margin="-4"
2828
HorizontalAlignment="Stretch"
2929
VerticalAlignment="Stretch"
3030
RadiusX="4"
3131
RadiusY="4"
3232
Stroke="Red"
33-
StrokeThickness="1"/>
33+
StrokeThickness="1" />
3434

3535
<muxc:InfoBadge Width="20"
3636
MinHeight="20"

0 commit comments

Comments
 (0)