Created
March 12, 2023 15:50
-
-
Save bbenetskyy/7aed9ca8fe0938613dc68638a3fc4ca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VerticalStackLayout Spacing="18"> | |
<BindableLayout.ItemsSource> | |
<x:Array Type="{x:Type xs:SelectableModel}"> | |
<xs:SelectableModel Description="Headache"/> | |
<xs:SelectableModel Description="Weakness"/> | |
</x:Array> | |
</BindableLayout.ItemsSource> | |
<BindableLayout.ItemTemplate> | |
<DataTemplate x:DataType="{x:Type xs:SelectableModel}"> | |
<Grid ColumnDefinitions="*, auto" | |
Margin="0,0,18,0" | |
ColumnSpacing="8"> | |
<Grid.GestureRecognizers> | |
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" | |
CommandParameter="{Binding .}" | |
/> | |
</Grid.GestureRecognizers> | |
<Label FontSize="Header" | |
HorizontalTextAlignment="End" | |
FontFamily="OpenSansRegular" | |
Text="{Binding Description}" | |
TextColor="#626262"/> | |
<Ellipse Grid.Column="1" | |
HorizontalOptions="Center" | |
VerticalOptions="Center" | |
Stroke="#3E0789" | |
StrokeThickness="2" | |
HeightRequest="14" | |
WidthRequest="14" | |
/> | |
<Ellipse Grid.Column="1" | |
HorizontalOptions="Center" | |
VerticalOptions="Center" | |
Fill="#3E0789" | |
HeightRequest="9" | |
IsVisible="{Binding IsSelected}" | |
WidthRequest="9" | |
/> | |
</Grid> | |
</DataTemplate> | |
</BindableLayout.ItemTemplate> | |
</VerticalStackLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment