<StackLayout Padding="5" Orientation="Horizontal" Grid.Row="1" Grid.Column="0">
<buttons:SfButton Text="" x:Name="buttonB" FontFamily="{StaticResource FontIcon}" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" TextColor="Blue" WidthRequest="30" HeightRequest="30" HorizontalOptions="Start" VerticalOptions="Start" FontSize="13" FontAttributes="Bold" IsCheckable="True" BackgroundColor="Transparent" BorderColor="Black" BorderWidth="2" >
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Checked">
<VisualState.Setters>
<Setter Property="TextColor" Value=" White" />
<Setter Property="Text" Value="�" />
<Setter Property="BackgroundColor" Value="Black" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Unchecked">
<VisualState.Setters>
<Setter Property="TextColor" Value="Black" />
<Setter Property="BackgroundColor" Value="White" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</buttons:SfButton>
<Label Text="Combo 2" VerticalOptions="Center" HorizontalOptions="Start" VerticalTextAlignment="Center" FontAttributes="Bold"/>
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Command="{Binding TapCommand}" CommandParameter="{x:Reference buttonB}"/>
</StackLayout.GestureRecognizers>
</StackLayout> |