GroupboxStyle.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Style TargetType="GroupBox">
  4. <Setter Property="Margin"
  5. Value="10,5" />
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="GroupBox">
  9. <Grid>
  10. <Polyline Points="0 30,0 10,10 0,30 0"
  11. Stroke="#6A5ACD"
  12. StrokeThickness="1"
  13. VerticalAlignment="Top"
  14. HorizontalAlignment="Left" />
  15. <Ellipse Width="5"
  16. Height="5"
  17. VerticalAlignment="Top"
  18. HorizontalAlignment="Left"
  19. Fill="#6A5ACD"
  20. Margin="24,-2,0,0" />
  21. <Ellipse Width="5"
  22. Height="5"
  23. VerticalAlignment="Top"
  24. HorizontalAlignment="Left"
  25. Fill="#6A5ACD"
  26. Margin="-2,24,0,0" />
  27. <Path Data="M0 0,3 3,30 3,33 0,68 0,73 7,78 7,78 10M8 0,25 0"
  28. Stroke="#6A5ACD"
  29. VerticalAlignment="Top"
  30. HorizontalAlignment="Right" />
  31. <Polyline Points="0,0 0,15 10,15"
  32. Stroke="#6A5ACD"
  33. VerticalAlignment="Bottom"
  34. HorizontalAlignment="Left" />
  35. <Polyline Points="10,0 0,10"
  36. Stroke="#6A5ACD"
  37. VerticalAlignment="Bottom"
  38. HorizontalAlignment="Right" />
  39. <Polygon Points="0,7 7 7 7 0"
  40. Fill="#6A5ACD"
  41. VerticalAlignment="Bottom"
  42. HorizontalAlignment="Right" />
  43. <Border BorderBrush="#6A5ACD"
  44. BorderThickness="0,1,0,0"
  45. VerticalAlignment="Top"
  46. Margin="30,-0.5,78,0" />
  47. <Border BorderBrush="#6A5ACD"
  48. BorderThickness="0,0,1,0"
  49. HorizontalAlignment="Right"
  50. Margin="0,10" />
  51. <Border BorderBrush="#6A5ACD"
  52. BorderThickness="0,1,0,0"
  53. VerticalAlignment="Bottom"
  54. Margin="10,0" />
  55. <Border BorderBrush="#6A5ACD"
  56. BorderThickness="0,0,1,0"
  57. HorizontalAlignment="Left"
  58. Margin="-0.5,15" />
  59. <Path Data="M0 0,3 0,5 4,3 8,0 8,3 4"
  60. Fill="#6A5ACD"
  61. VerticalAlignment="Top"
  62. HorizontalAlignment="Left"
  63. Margin="10,13,0,0"
  64. Height="17"
  65. Stretch="Fill"
  66. Width="6" />
  67. <Path Data="M0 0,3 0,5 4,3 8,0 8,3 4"
  68. Fill="#AB82FF"
  69. VerticalAlignment="Top"
  70. HorizontalAlignment="Left"
  71. Margin="16,13,0,0"
  72. Height="17"
  73. Stretch="Fill"
  74. Width="6" />
  75. <TextBlock Text="{TemplateBinding Header}"
  76. Foreground="#6A5ACD"
  77. VerticalAlignment="Top"
  78. HorizontalAlignment="Left"
  79. Margin="25,8" />
  80. <ContentPresenter />
  81. </Grid>
  82. </ControlTemplate>
  83. </Setter.Value>
  84. </Setter>
  85. </Style>
  86. </ResourceDictionary>