Skip to content

Instantly share code, notes, and snippets.

@bbenetskyy
Created March 12, 2023 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbenetskyy/7aed9ca8fe0938613dc68638a3fc4ca0 to your computer and use it in GitHub Desktop.
Save bbenetskyy/7aed9ca8fe0938613dc68638a3fc4ca0 to your computer and use it in GitHub Desktop.
<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