-
Notifications
You must be signed in to change notification settings - Fork 99
/
CheckBoxPage.xaml
37 lines (31 loc) · 2.24 KB
/
CheckBoxPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:input="clr-namespace:InputKit.Shared.Controls;assembly=InputKit.Maui"
x:Class="SandboxMAUI.Pages.CheckBoxPage"
Title="CheckBoxPage">
<ScrollView>
<StackLayout
x:Name="mainLayout"
Padding="25"
Spacing="15"
MaximumWidthRequest="400">
<Button Text="Randomize colors" Clicked="Button_Clicked" />
<BoxView Color="{AppThemeBinding Dark=White, Light=Black}" HeightRequest="1" HorizontalOptions="Fill" Margin="5,10" />
<input:CheckBox>
<Image Source="https://seeklogo.com/images/X/xamarin-logo-F85620A85D-seeklogo.com.png" WidthRequest="50" HeightRequest="50" />
</input:CheckBox>
<input:CheckBox>
<Image Source="dotnet_bot.png" WidthRequest="50" HeightRequest="50" />
</input:CheckBox>
<input:CheckBox Text="Option 0 Plain Checkbox" />
<input:CheckBox Text="Option 1 with Filled Type" Type="Filled" />
<input:CheckBox Text="Option 2 with Material Type" Type="Material" />
<input:CheckBox Text="Option 2 with Square Shape" IconGeometry="{x:Static input:PredefinedShapes.Square}" />
<input:CheckBox Text="Option 3 with Line Shape" IconGeometry="{x:Static input:PredefinedShapes.Line}" />
<input:CheckBox Text="Option 3 with Line Shape with Material Type" Type="Material" IconGeometry="{x:Static input:PredefinedShapes.Line}" />
<input:CheckBox Text="Option 3 with Custom Type (X)" IconGeometry="M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"/>
<input:CheckBox Text="Option 5 with Material Custom Type (X)" Type="Material" IconGeometry="M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"/>
<input:CheckBox Text="Option 6 (Position)" Type="Regular" LabelPosition="Before"/>
</StackLayout>
</ScrollView>
</ContentPage>