HomePageTile.xaml 1.2 KB

12345678910111213141516171819202122
  1. <controls:BaseUserControl x:Class="MediaBrowser.Plugins.DefaultTheme.Controls.HomePageTile"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:controls="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI.Controls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="300">
  9. <Grid HorizontalAlignment="Left" Width="400" Height="225">
  10. <Border Background="{Binding Converter={StaticResource MetroTileBackgroundConverter}}">
  11. <Image x:Name="image" Stretch="Uniform"></Image>
  12. </Border>
  13. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
  14. <Grid.Background>
  15. <SolidColorBrush Color="#A6000000"></SolidColorBrush>
  16. </Grid.Background>
  17. <TextBlock Margin="10 5 0 10" Foreground="White" Text="{Binding Path=Item.Name}" TextWrapping="Wrap"></TextBlock>
  18. </Grid>
  19. </Grid>
  20. </controls:BaseUserControl>