App.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Application x:Class="Muchinfo.MTPClient.Update.App"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  4. <Application.Resources>
  5. <ImageSource x:Key="DialogCloseImg">Images/prompt_close.png</ImageSource>
  6. <ImageSource x:Key="DialogCloseImg_P">Images/prompt_close_d.png</ImageSource>
  7. <ImageSource x:Key="WindowIconImageSource">Update.ico</ImageSource>
  8. <Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
  9. <Setter Property="BorderThickness" Value="0" />
  10. <Setter Property="Height" Value="24" />
  11. <Setter Property="Width" Value="24" />
  12. <Setter Property="HorizontalContentAlignment" Value="Center" />
  13. <Setter Property="VerticalContentAlignment" Value="Center" />
  14. <Setter Property="Template">
  15. <Setter.Value>
  16. <ControlTemplate TargetType="{x:Type Button}">
  17. <Border x:Name="ContentContainer" CornerRadius="2">
  18. <Image x:Name="image"
  19. Source="{DynamicResource DialogCloseImg}"
  20. Stretch="Uniform" />
  21. </Border>
  22. <ControlTemplate.Triggers>
  23. <Trigger Property="IsPressed" Value="true">
  24. <Setter TargetName="image" Property="Source" Value="{DynamicResource DialogCloseImg_P}" />
  25. <Setter TargetName="ContentContainer" Property="Background" Value="#FF474747" />
  26. </Trigger>
  27. <Trigger Property="IsMouseOver" Value="True">
  28. <Setter TargetName="ContentContainer" Property="Background" Value="#FF474747" />
  29. </Trigger>
  30. </ControlTemplate.Triggers>
  31. </ControlTemplate>
  32. </Setter.Value>
  33. </Setter>
  34. </Style>
  35. </Application.Resources>
  36. </Application>