<?xml version="1.0" encoding="UTF-8"?>
<Frame xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Bit.App.Controls.IconLabelButton"
    xmlns:controls="clr-namespace:Bit.App.Controls"
    x:Name="_iconLabelButton"
    HeightRequest="45"
    Padding="1"
    StyleClass="btn-icon-secondary"
    BackgroundColor="{Binding IconLabelBorderColor, Source={x:Reference _iconLabelButton}}"
    BorderColor="Transparent"
    HasShadow="False">
    <Frame.GestureRecognizers>
        <TapGestureRecognizer Command="{Binding ButtonCommand, Source={x:Reference _iconLabelButton}}" />
    </Frame.GestureRecognizers>
    <Frame
        Margin="0"
        Padding="0"
        CornerRadius="{Binding CornerRadius, Source={x:Reference _iconLabelButton}}"
        BackgroundColor="{Binding IconLabelBackgroundColor, Source={x:Reference _iconLabelButton}}"
        BorderColor="Transparent"
        IsClippedToBounds="True"
        HasShadow="False">
        <StackLayout
            Orientation="Horizontal"
            HorizontalOptions="Center">
            <controls:IconLabel
                VerticalOptions="Center"
                HorizontalTextAlignment="Center"
                FontSize="Large"
                TextColor="{Binding IconLabelColor, Source={x:Reference _iconLabelButton}}"
                Text="{Binding Icon, Source={x:Reference _iconLabelButton}}">
            </controls:IconLabel>
            <Label
                VerticalOptions="Center"
                HorizontalTextAlignment="Center"
                TextColor="{Binding IconLabelColor, Source={x:Reference _iconLabelButton}}"
                FontSize="Medium"
                Text="{Binding Label, Source={x:Reference _iconLabelButton}}"/>
        </StackLayout>
    </Frame>
</Frame>
