Generic.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:UI="clr-namespace:CustomUI"
  4. xmlns:ec="http://schemas.microsoft.com/expression/2010/controls"
  5. xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing">
  6. <ResourceDictionary.MergedDictionaries>
  7. <ResourceDictionary Source="DoubleArc.xaml" />
  8. <ResourceDictionary Source="DoubleRound.xaml" />
  9. <ResourceDictionary Source="SingleRound.xaml" />
  10. <ResourceDictionary Source="Cogs.xaml" />
  11. <ResourceDictionary Source="Apple.xaml" />
  12. <ResourceDictionary Source="Normal.xaml" />
  13. </ResourceDictionary.MergedDictionaries>
  14. <Style TargetType="{x:Type UI:Loading}">
  15. <Setter Property="Background" Value="Transparent" />
  16. <Setter Property="BorderBrush" Value="Transparent" />
  17. <Setter Property="BorderThickness" Value="0" />
  18. <Setter Property="Foreground" Value="Black" />
  19. <Setter Property="Foreground" Value="#1282B3" />
  20. <Setter Property="Width" Value="40" />
  21. <Setter Property="Height" Value="40" />
  22. <Setter Property="VerticalAlignment" Value="Center" />
  23. <Setter Property="HorizontalAlignment" Value="Center" />
  24. <Setter Property="Template" Value="{StaticResource DoubleArc}" />
  25. <Style.Triggers>
  26. <Trigger Property="Type" Value="DoubleRound">
  27. <Setter Property="Foreground" Value="#1282B3" />
  28. <Setter Property="Template" Value="{StaticResource DoubleRound}" />
  29. </Trigger>
  30. <Trigger Property="Type" Value="SingleRound">
  31. <Setter Property="Foreground" Value="#1282B3" />
  32. <Setter Property="Template" Value="{StaticResource SingleRound}" />
  33. </Trigger>
  34. <Trigger Property="Type" Value="Win10">
  35. <Setter Property="Foreground" Value="#1282B3" />
  36. <Setter Property="Template" Value="{StaticResource SingleRound}" />
  37. </Trigger>
  38. <Trigger Property="Type" Value="Android">
  39. <Setter Property="Foreground" Value="#1282B3" />
  40. <Setter Property="Template" Value="{StaticResource Normal}" />
  41. </Trigger>
  42. <Trigger Property="Type" Value="Cogs">
  43. <Setter Property="Foreground" Value="#1282B3" />
  44. <Setter Property="Template" Value="{StaticResource Cogs}" />
  45. </Trigger>
  46. <Trigger Property="Type" Value="Apple">
  47. <Setter Property="Width" Value="24" />
  48. <Setter Property="Foreground" Value="#1282B3" />
  49. <Setter Property="Template" Value="{StaticResource Apple}" />
  50. </Trigger>
  51. <Trigger Property="Type" Value="Normal">
  52. <Setter Property="Foreground" Value="#1282B3" />
  53. <Setter Property="Template" Value="{StaticResource Normal}" />
  54. </Trigger>
  55. </Style.Triggers>
  56. </Style>
  57. </ResourceDictionary>