| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="UTF-8"?>
- <Grid
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="comal.timesheets.ToolEntry"
- x:Name="this" MinimumHeightRequest="104" MinimumWidthRequest="80"
- >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="40"/>
- <ColumnDefinition Width="40"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="24"/>
- </Grid.RowDefinitions>
- <Frame CornerRadius="5" HasShadow="False" Margin="0" x:Name="toolFrame" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2">
- <Frame.Padding>
- <OnPlatform x:TypeArguments="Thickness">
- <On Platform="Android" Value="15"/>
- <On Platform="iOS" Value="0"/>
- </OnPlatform>
- </Frame.Padding>
- <Image x:Name="toolEntryImage"
- Source="{Binding Image, Source={x:Reference this}}">
- <Image.GestureRecognizers>
- <TapGestureRecognizer Tapped="ImageTapped" />
- </Image.GestureRecognizers>
- </Image>
- </Frame>
- <Frame x:Name="notificationFrame" Grid.Row="0" Grid.Column="1" HorizontalOptions="End" HasShadow="False"
- VerticalOptions="Start" HeightRequest="30" WidthRequest="30" CornerRadius="15" IsVisible="false"
- BackgroundColor="Yellow" Padding="1">
- <Label FontAttributes="Bold" TextColor="Red" FontSize="Medium" HorizontalOptions="Center" VerticalOptions="Center" Margin="1"
- x:Name="toolEntryLbl" />
- </Frame>
-
- <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Text, Source={x:Reference this}}" FontSize="Micro" HorizontalTextAlignment="Center" VerticalTextAlignment="Start" />
- </Grid>
|