Generic.xaml 1.3 KB

123456789101112131415161718192021222324
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:NS_Marquee;assembly=Marquee">
  5. <Style TargetType="{x:Type local:Marquee}">
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="{x:Type local:Marquee}">
  9. <Border Background="{TemplateBinding Background}"
  10. BorderBrush="{TemplateBinding BorderBrush}"
  11. BorderThickness="{TemplateBinding BorderThickness}">
  12. <ContentPresenter x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"
  13. HorizontalAlignment="Left"
  14. ContentSource="Content" ContentTemplate="{TemplateBinding ContentTemplate}"
  15. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  16. ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}">
  17. </ContentPresenter>
  18. </Border>
  19. </ControlTemplate>
  20. </Setter.Value>
  21. </Setter>
  22. </Style>
  23. </ResourceDictionary>