Generic.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:tile="using:FormulaOneApp.Classic.Windows.Controls.Tile">
  5. <Style TargetType="tile:Tile">
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="tile:Tile">
  9. <Canvas x:Name="canvas" Background="{TemplateBinding Background}" Height="{TemplateBinding Height}"
  10. Width="{TemplateBinding Width}">
  11. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
  12. Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"
  13. Canvas.ZIndex="99" />
  14. <Border Height="{TemplateBinding Height}"
  15. Width="{TemplateBinding Width}"
  16. BorderThickness="{TemplateBinding BorderThickness}" >
  17. <Grid x:Name="PART_InnerGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  18. <ContentPresenter x:Name="PART_BackContentPresenter"
  19. Content="{TemplateBinding BackContent}" />
  20. <ContentPresenter x:Name="PART_FrontContentPresenter"
  21. Content="{TemplateBinding FrontContent}" />
  22. <ContentPresenter x:Name="PART_OverlayContentPresenter"
  23. Content="{TemplateBinding OverlayContent}" />
  24. </Grid>
  25. </Border>
  26. </Canvas>
  27. </ControlTemplate>
  28. </Setter.Value>
  29. </Setter>
  30. </Style>
  31. </ResourceDictionary>