mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-27 03:52:57 +02:00
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
|
<?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}}"
|
||
|
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}}"
|
||
|
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>
|