You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.5 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:bpa="clr-namespace:BPA.UIControl">
  4. <ResourceDictionary.MergedDictionaries>
  5. <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/Default.xaml" />
  6. </ResourceDictionary.MergedDictionaries>
  7. <Style TargetType="bpa:NotificationContainer">
  8. <Setter Property="SnapsToDevicePixels" Value="True" />
  9. <Setter Property="HorizontalContentAlignment" Value="Right" />
  10. <Setter Property="VerticalContentAlignment" Value="Bottom" />
  11. <Setter Property="Template">
  12. <Setter.Value>
  13. <ControlTemplate TargetType="bpa:NotificationContainer">
  14. <Grid>
  15. <ContentPresenter x:Name="contentPresenter"
  16. Focusable="False"
  17. RecognizesAccessKey="True"
  18. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  19. <StackPanel x:Name="PART_StackPanel"
  20. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  21. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  22. </Grid>
  23. </ControlTemplate>
  24. </Setter.Value>
  25. </Setter>
  26. </Style>
  27. </ResourceDictionary>