-
Notifications
You must be signed in to change notification settings - Fork 101
/
RadioButtonPage.xaml
34 lines (28 loc) · 2.24 KB
/
RadioButtonPage.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
<?xml version="1.0" encoding="utf-8" ?>
<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.RadioButtonPage"
Title="RadioButtonPage">
<ScrollView>
<StackLayout Padding="25" Spacing="15" MaximumWidthRequest="400">
<Button Text="Randomize Colors" Clicked="RandomizeColors" />
<BoxView Color="{AppThemeBinding Dark=White, Light=Black}" HeightRequest="1" HorizontalOptions="Fill" Margin="5,10" />
<input:RadioButtonGroupView x:Name="groupView">
<input:RadioButton Text="Option 1"/>
<input:RadioButton Text="Option 2" />
<input:RadioButton Text="Option 3 with Check Shape" SelectedIconGeomerty="{x:Static input:PredefinedShapes.Check}" />
<input:RadioButton Text="Option 4 with CheckCircle Shape" SelectedIconGeomerty="{x:Static input:PredefinedShapes.CheckCircle}"/>
<input:RadioButton Text="Option 5 with Custom Shape" SelectedIconGeomerty="M 15.6038 7.1366 v 5.8061 c 0 0.8669 -0.8266 1.6934 -1.6934 1.6934 h -5.0803 c -1.0547 0 -1.9094 -0.1302 -2.903 -0.4838 c -0.3068 -0.1092 -1.2096 -0.4838 -1.2096 -0.4838 V 6.8947 l 3.9939 -4.6913 L 9.072 0.121 h 0.7258 c 0.804 0 1.3703 0.6415 1.3703 1.4456 v 0.4522 c 0 1.0321 -0.0622 2.0633 -0.1862 3.0879 L 10.9412 5.4432 H 13.9104 C 14.7773 5.4432 15.6038 6.2698 15.6038 7.1366 z M 0.121 14.3942 h 3.6288 V 6.169 H 0.121 V 14.3942 z"/>
<input:RadioButton Text="Option 6 Label Position Before" LabelPosition="Before"/>
<input:RadioButton Text="Option 7 Disabled" IsDisabled="True"/>
<input:RadioButton>
<Image Source="https://seeklogo.com/images/X/xamarin-logo-F85620A85D-seeklogo.com.png" WidthRequest="50" HeightRequest="50" />
</input:RadioButton>
<input:RadioButton>
<Image Source="dotnet_bot.png" WidthRequest="50" HeightRequest="50" />
</input:RadioButton>
</input:RadioButtonGroupView>
</StackLayout>
</ScrollView>
</ContentPage>