ToolEntry.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Grid
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. x:Class="comal.timesheets.ToolEntry"
  6. x:Name="this" MinimumHeightRequest="104" MinimumWidthRequest="80"
  7. >
  8. <Grid.ColumnDefinitions>
  9. <ColumnDefinition Width="40"/>
  10. <ColumnDefinition Width="40"/>
  11. </Grid.ColumnDefinitions>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="40"/>
  14. <RowDefinition Height="40"/>
  15. <RowDefinition Height="24"/>
  16. </Grid.RowDefinitions>
  17. <Frame CornerRadius="5" HasShadow="False" Margin="0" x:Name="toolFrame" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2">
  18. <Frame.Padding>
  19. <OnPlatform x:TypeArguments="Thickness">
  20. <On Platform="Android" Value="15"/>
  21. <On Platform="iOS" Value="0"/>
  22. </OnPlatform>
  23. </Frame.Padding>
  24. <Image x:Name="toolEntryImage"
  25. Source="{Binding Image, Source={x:Reference this}}">
  26. <Image.GestureRecognizers>
  27. <TapGestureRecognizer Tapped="ImageTapped" />
  28. </Image.GestureRecognizers>
  29. </Image>
  30. </Frame>
  31. <Frame x:Name="notificationFrame" Grid.Row="0" Grid.Column="1" HorizontalOptions="End" HasShadow="False"
  32. VerticalOptions="Start" HeightRequest="30" WidthRequest="30" CornerRadius="15" IsVisible="false"
  33. BackgroundColor="Yellow" Padding="1">
  34. <Label FontAttributes="Bold" TextColor="Red" FontSize="Medium" HorizontalOptions="Center" VerticalOptions="Center" Margin="1"
  35. x:Name="toolEntryLbl" />
  36. </Frame>
  37. <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Text, Source={x:Reference this}}" FontSize="Micro" HorizontalTextAlignment="Center" VerticalTextAlignment="Start" />
  38. </Grid>