Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

MessageContainer.xaml 1.5 KiB

il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
1234567891011121314151617181920212223242526272829
  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:MessageContainer">
  8. <Setter Property="SnapsToDevicePixels" Value="True" />
  9. <Setter Property="HorizontalContentAlignment" Value="Center" />
  10. <Setter Property="VerticalContentAlignment" Value="Top" />
  11. <Setter Property="Template">
  12. <Setter.Value>
  13. <ControlTemplate TargetType="bpa:MessageContainer">
  14. <Grid>
  15. <ContentPresenter x:Name="contentPresenter"
  16. Focusable="False"
  17. RecognizesAccessKey="True"
  18. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  19. <StackPanel x:Name="PART_MessageStackPanel"
  20. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  21. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  22. </Grid>
  23. </ControlTemplate>
  24. </Setter.Value>
  25. </Setter>
  26. </Style>
  27. </ResourceDictionary>