Skip to content

Commit 46f82e2

Browse files
Fix XamlParseException
Change `ClearOnFinish` -> ClearOnFinishSwitch` Change `MultiLineMode` -> `MultiLineModeSwitch`
1 parent 70d10e7 commit 46f82e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/CommunityToolkit.Maui.Sample/Pages/Views/DrawingViewPage.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151
Clicked="GenerateImageButtonClicked"
5252
Text="Generate Image with Random Lines"
5353
TextColor="Black" />
54-
54+
5555
<Label
5656
Grid.Row="7" Grid.Column="0"
5757
Text="Output" />
5858
<Picker
5959
Grid.Row="7" Grid.Column="1"
6060
ItemsSource="{Binding AvailableOutputOptions}"
6161
SelectedItem="{Binding SelectedOutputOption}" />
62-
62+
6363
<Button
6464
Grid.Row="8" Grid.Column="0"
6565
Grid.ColumnSpan="2"
@@ -83,8 +83,8 @@
8383
DrawingLineStartedCommand="{Binding DrawingLineStartedCommand, Mode=OneTime}"
8484
DrawingLineCancelledCommand="{Binding DrawingLineCancelledCommand, Mode=OneTime}"
8585
PointDrawnCommand="{Binding PointDrawnCommand, Mode=OneTime}"
86-
ShouldClearOnFinish="{Binding Source={x:Reference ClearOnFinish}, Path=IsToggled, x:DataType=Switch}"
87-
IsMultiLineModeEnabled="{Binding Source={x:Reference MultiLineMode}, Path=IsToggled, x:DataType=Switch}"
86+
ShouldClearOnFinish="{Binding Source={x:Reference ClearOnFinishSwitch}, Path=IsToggled, x:DataType=Switch}"
87+
IsMultiLineModeEnabled="{Binding Source={x:Reference MultiLineModeSwitch}, Path=IsToggled, x:DataType=Switch}"
8888
Height="{Binding CanvasHeight}"
8989
Width="{Binding CanvasWidth}">
9090
<mct:DrawingView.Background>

0 commit comments

Comments
 (0)