Scrollbar.xaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d">
  7. <SolidColorBrush x:Key="ScrollBar_BD" Color="#FF243664"/>
  8. <SolidColorBrush x:Key="ScrollBar_BG" Color="#FF235d80"/>
  9. <SolidColorBrush x:Key="ScrollBar_InnerHighlight" Color="#FF9FCDED"/>
  10. <SolidColorBrush x:Key="ScrollBar_InnerShadow" Color="#FF003A62"/>
  11. <SolidColorBrush x:Key="ScrollBar_BG_MouseOver" Color="#FF227BB8"/>
  12. <SolidColorBrush x:Key="ScrollBar_ArrowBG" Color="White"/>
  13. <SolidColorBrush x:Key="ScrollBar_BD_Unable" Color="#FF868686"/>
  14. <LinearGradientBrush x:Key="ScrollBar_BG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  15. <GradientStop Color="#FFB1B1B1" Offset="0"/>
  16. <GradientStop Color="#FFDADADA" Offset="1"/>
  17. </LinearGradientBrush>
  18. <SolidColorBrush x:Key="ScrollBar_InnerHighlight_Unable" Color="#FFD8D8D8"/>
  19. <SolidColorBrush x:Key="ScrollBar_InnerShadow_Unable" Color="#FF6C6C6C"/>
  20. <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
  21. <Setter Property="SnapsToDevicePixels" Value="True"/>
  22. <Setter Property="OverridesDefaultStyle" Value="True"/>
  23. <Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}"/>
  24. <Setter Property="Background" Value="{DynamicResource ScrollBar_BG}"/>
  25. <Setter Property="Border.CornerRadius" Value="3"/>
  26. <Setter Property="Focusable" Value="false"/>
  27. <Setter Property="Template">
  28. <Setter.Value>
  29. <ControlTemplate TargetType="{x:Type RepeatButton}">
  30. <ControlTemplate.Resources>
  31. <Storyboard x:Key="OnMouseOver">
  32. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  33. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  34. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0,0,1,0"/>
  35. </DoubleAnimationUsingKeyFrames>
  36. </Storyboard>
  37. <Storyboard x:Key="OnMouseOut">
  38. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  39. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  40. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0" KeySpline="0,0,0,1"/>
  41. </DoubleAnimationUsingKeyFrames>
  42. </Storyboard>
  43. </ControlTemplate.Resources>
  44. <Grid x:Name="BG" Cursor="Hand">
  45. <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
  46. <Border x:Name="InnerBD_Highlight" BorderThickness="1,1,0,0" BorderBrush="{DynamicResource ScrollBar_InnerHighlight}" CornerRadius="2">
  47. <Border x:Name="InnerBD_Shadow" BorderThickness="0,0,1,1" BorderBrush="{DynamicResource ScrollBar_InnerShadow}" CornerRadius="2"/>
  48. </Border>
  49. </Border>
  50. <Border x:Name="HighLight" Margin="2" Background="{DynamicResource ScrollBar_BG_MouseOver}" CornerRadius="2" Opacity="0"/>
  51. <Path x:Name="path"
  52. HorizontalAlignment="Center"
  53. VerticalAlignment="Center"
  54. Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
  55. Fill="{DynamicResource ScrollBar_ArrowBG}" >
  56. <Path.Effect>
  57. <DropShadowEffect BlurRadius="0" ShadowDepth="1"/>
  58. </Path.Effect>
  59. </Path>
  60. </Grid>
  61. <ControlTemplate.Triggers>
  62. <Trigger Property="IsMouseOver" Value="True">
  63. <Trigger.ExitActions>
  64. <BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}"/>
  65. </Trigger.ExitActions>
  66. <Trigger.EnterActions>
  67. <BeginStoryboard Storyboard="{StaticResource OnMouseOver}"/>
  68. </Trigger.EnterActions>
  69. <Setter Property="Fill" TargetName="path" Value="#CCFFFFFF"/>
  70. <Setter Property="Effect" TargetName="path">
  71. <Setter.Value>
  72. <DropShadowEffect BlurRadius="0" ShadowDepth="2"/>
  73. </Setter.Value>
  74. </Setter>
  75. </Trigger>
  76. <Trigger Property="IsPressed" Value="true">
  77. <Setter Property="Opacity" TargetName="HighLight" Value="1"/>
  78. </Trigger>
  79. <Trigger Property="IsEnabled" Value="false">
  80. <Setter Property="Background" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BG_Unable}"/>
  81. <Setter Property="BorderBrush" TargetName="InnerBD_Highlight" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}"/>
  82. <Setter Property="BorderBrush" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BD_Unable}"/>
  83. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ScrollBar_InnerShadow_Unable}"/>
  84. <Setter Property="Fill" TargetName="path" Value="#FF999999"/>
  85. <Setter Property="Effect" TargetName="path">
  86. <Setter.Value>
  87. <DropShadowEffect BlurRadius="0" Opacity="0" ShadowDepth="1"/>
  88. </Setter.Value>
  89. </Setter>
  90. </Trigger>
  91. </ControlTemplate.Triggers>
  92. </ControlTemplate>
  93. </Setter.Value>
  94. </Setter>
  95. </Style>
  96. <Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
  97. <Setter Property="OverridesDefaultStyle" Value="true"/>
  98. <Setter Property="Background" Value="Transparent"/>
  99. <Setter Property="Focusable" Value="false"/>
  100. <Setter Property="IsTabStop" Value="false"/>
  101. <Setter Property="Template">
  102. <Setter.Value>
  103. <ControlTemplate TargetType="{x:Type RepeatButton}">
  104. <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
  105. </ControlTemplate>
  106. </Setter.Value>
  107. </Setter>
  108. </Style>
  109. <Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
  110. <Setter Property="OverridesDefaultStyle" Value="true"/>
  111. <Setter Property="Background" Value="Transparent"/>
  112. <Setter Property="Focusable" Value="false"/>
  113. <Setter Property="IsTabStop" Value="false"/>
  114. <Setter Property="Template">
  115. <Setter.Value>
  116. <ControlTemplate TargetType="{x:Type RepeatButton}">
  117. <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
  118. </ControlTemplate>
  119. </Setter.Value>
  120. </Setter>
  121. </Style>
  122. <Style x:Key="ScrollBarVerticalThumb" TargetType="{x:Type Thumb}">
  123. <Setter Property="SnapsToDevicePixels" Value="True"/>
  124. <Setter Property="OverridesDefaultStyle" Value="true"/>
  125. <Setter Property="IsTabStop" Value="False"/>
  126. <Setter Property="Focusable" Value="False"/>
  127. <Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}"/>
  128. <Setter Property="Background" Value="{DynamicResource ScrollBar_BG}"/>
  129. <Setter Property="Border.CornerRadius" Value="0"/>
  130. <Setter Property="Template">
  131. <Setter.Value>
  132. <ControlTemplate TargetType="{x:Type Thumb}">
  133. <ControlTemplate.Resources>
  134. <Storyboard x:Key="OnMouseOver">
  135. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  136. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  137. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0,0,1,0"/>
  138. </DoubleAnimationUsingKeyFrames>
  139. </Storyboard>
  140. <Storyboard x:Key="OnMouseOut">
  141. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  142. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  143. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0" KeySpline="0,0,0,1"/>
  144. </DoubleAnimationUsingKeyFrames>
  145. </Storyboard>
  146. </ControlTemplate.Resources>
  147. <Grid x:Name="BG" Cursor="Hand">
  148. <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
  149. <Border x:Name="InnerBD_Highlight" BorderThickness="1,1,0,0" BorderBrush="{DynamicResource ScrollBar_InnerHighlight}">
  150. <Border x:Name="InnerBD_Shadow" BorderThickness="0,0,1,1" BorderBrush="{DynamicResource ScrollBar_InnerShadow}"/>
  151. </Border>
  152. </Border>
  153. <Border x:Name="HighLight" Margin="2" Background="{DynamicResource ScrollBar_BG_MouseOver}" Opacity="0" CornerRadius="2"/>
  154. </Grid>
  155. <ControlTemplate.Triggers>
  156. <Trigger Property="IsMouseOver" Value="True">
  157. <Trigger.ExitActions>
  158. <BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}"/>
  159. </Trigger.ExitActions>
  160. <Trigger.EnterActions>
  161. <BeginStoryboard Storyboard="{StaticResource OnMouseOver}"/>
  162. </Trigger.EnterActions>
  163. </Trigger>
  164. <Trigger Property="IsEnabled" Value="False">
  165. <Setter Property="Background" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BG_Unable}"/>
  166. <Setter Property="BorderBrush" TargetName="InnerBD_Highlight" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}"/>
  167. <Setter Property="BorderBrush" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BD_Unable}"/>
  168. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ScrollBar_InnerShadow_Unable}"/>
  169. </Trigger>
  170. </ControlTemplate.Triggers>
  171. </ControlTemplate>
  172. </Setter.Value>
  173. </Setter>
  174. </Style>
  175. <Style x:Key="ScrollBarHorizontalThumb" TargetType="{x:Type Thumb}">
  176. <Setter Property="SnapsToDevicePixels" Value="True"/>
  177. <Setter Property="OverridesDefaultStyle" Value="true"/>
  178. <Setter Property="IsTabStop" Value="False"/>
  179. <Setter Property="Focusable" Value="False"/>
  180. <Setter Property="BorderBrush" Value="{DynamicResource ScrollBar_BD}"/>
  181. <Setter Property="Background" Value="{DynamicResource ScrollBar_BG}"/>
  182. <Setter Property="Template">
  183. <Setter.Value>
  184. <ControlTemplate TargetType="{x:Type Thumb}">
  185. <ControlTemplate.Resources>
  186. <Storyboard x:Key="OnMouseOver">
  187. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  188. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  189. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0,0,1,0"/>
  190. </DoubleAnimationUsingKeyFrames>
  191. </Storyboard>
  192. <Storyboard x:Key="OnMouseOut">
  193. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HighLight">
  194. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  195. <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0" KeySpline="0,0,0,1"/>
  196. </DoubleAnimationUsingKeyFrames>
  197. </Storyboard>
  198. </ControlTemplate.Resources>
  199. <Grid x:Name="BG" Cursor="Hand">
  200. <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
  201. <Border x:Name="InnerBD_Highlight" BorderThickness="1,1,0,0" BorderBrush="{DynamicResource ScrollBar_InnerHighlight}">
  202. <Border x:Name="InnerBD_Shadow" BorderThickness="0,0,1,1" BorderBrush="{DynamicResource ScrollBar_InnerShadow}"/>
  203. </Border>
  204. </Border>
  205. <Border x:Name="HighLight" Margin="1" Background="{DynamicResource ScrollBar_BG_MouseOver}" Opacity="0"/>
  206. </Grid>
  207. <ControlTemplate.Triggers>
  208. <Trigger Property="IsMouseOver" Value="True">
  209. <Trigger.ExitActions>
  210. <BeginStoryboard x:Name="OnMouseOut_BeginStoryboard" Storyboard="{StaticResource OnMouseOut}"/>
  211. </Trigger.ExitActions>
  212. <Trigger.EnterActions>
  213. <BeginStoryboard Storyboard="{StaticResource OnMouseOver}"/>
  214. </Trigger.EnterActions>
  215. </Trigger>
  216. <Trigger Property="IsEnabled" Value="False">
  217. <Setter Property="Background" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BG_Unable}"/>
  218. <Setter Property="BorderBrush" TargetName="InnerBD_Highlight" Value="{DynamicResource ScrollBar_InnerHighlight_Unable}"/>
  219. <Setter Property="BorderBrush" TargetName="OuterBorder" Value="{DynamicResource ScrollBar_BD_Unable}"/>
  220. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ScrollBar_InnerShadow_Unable}"/>
  221. </Trigger>
  222. </ControlTemplate.Triggers>
  223. </ControlTemplate>
  224. </Setter.Value>
  225. </Setter>
  226. </Style>
  227. <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
  228. <Grid >
  229. <Grid.RowDefinitions>
  230. <RowDefinition MaxHeight="22"/>
  231. <RowDefinition Height="0.00001*"/>
  232. <RowDefinition MaxHeight="22"/>
  233. </Grid.RowDefinitions>
  234. <RepeatButton
  235. Grid.Row="0"
  236. Style="{StaticResource ScrollBarLineButton}"
  237. Height="21"
  238. Command="ScrollBar.LineUpCommand"
  239. Content="M 0 4 L 8 4 L 4 0 Z" VerticalAlignment="Top" />
  240. <Track
  241. Name="PART_Track"
  242. Grid.Row="1"
  243. Height="{TemplateBinding Height}"
  244. Maximum="{TemplateBinding Maximum}"
  245. Minimum="{TemplateBinding Minimum}"
  246. Value="{TemplateBinding Value}"
  247. IsDirectionReversed="true">
  248. <Track.DecreaseRepeatButton>
  249. <RepeatButton
  250. Style="{StaticResource VerticalScrollBarPageButton}"
  251. Command="ScrollBar.PageUpCommand" />
  252. </Track.DecreaseRepeatButton>
  253. <Track.Thumb>
  254. <Thumb Style="{StaticResource ScrollBarVerticalThumb}" />
  255. </Track.Thumb>
  256. <Track.IncreaseRepeatButton>
  257. <RepeatButton
  258. Style="{StaticResource VerticalScrollBarPageButton}"
  259. Command="ScrollBar.PageDownCommand" />
  260. </Track.IncreaseRepeatButton>
  261. </Track>
  262. <RepeatButton Grid.Row="3"
  263. Style="{StaticResource ScrollBarLineButton}"
  264. Height="21"
  265. Command="ScrollBar.LineDownCommand"
  266. Content="M 0 0 L 4 4 L 8 0 Z" VerticalAlignment="Bottom"/>
  267. </Grid>
  268. </ControlTemplate>
  269. <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
  270. <Grid >
  271. <Grid.ColumnDefinitions>
  272. <ColumnDefinition MaxWidth="22"/>
  273. <ColumnDefinition Width="0.00001*"/>
  274. <ColumnDefinition MaxWidth="22"/>
  275. </Grid.ColumnDefinitions>
  276. <RepeatButton
  277. Grid.Column="0"
  278. Style="{StaticResource ScrollBarLineButton}"
  279. Width="21" Command="ScrollBar.LineLeftCommand"
  280. Content="M 4 0 L 4 8 L 0 4 Z" HorizontalAlignment="Left" />
  281. <Track
  282. Name="PART_Track"
  283. Grid.Column="1"
  284. Width="{TemplateBinding Width}"
  285. Maximum="{TemplateBinding Maximum}"
  286. Minimum="{TemplateBinding Minimum}"
  287. Value="{TemplateBinding Value}"
  288. IsDirectionReversed="False">
  289. <Track.DecreaseRepeatButton>
  290. <RepeatButton
  291. Style="{StaticResource HorizontalScrollBarPageButton}"
  292. Command="ScrollBar.PageLeftCommand" />
  293. </Track.DecreaseRepeatButton>
  294. <Track.Thumb>
  295. <Thumb Style="{StaticResource ScrollBarHorizontalThumb}"/>
  296. </Track.Thumb>
  297. <Track.IncreaseRepeatButton>
  298. <RepeatButton
  299. Style="{StaticResource HorizontalScrollBarPageButton}"
  300. Command="ScrollBar.PageRightCommand" />
  301. </Track.IncreaseRepeatButton>
  302. </Track>
  303. <RepeatButton
  304. Grid.Column="3"
  305. Style="{StaticResource ScrollBarLineButton}"
  306. Width="21"
  307. Command="ScrollBar.LineRightCommand"
  308. Content="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right"/>
  309. </Grid>
  310. </ControlTemplate>
  311. <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
  312. <Setter Property="SnapsToDevicePixels" Value="True"/>
  313. <Setter Property="OverridesDefaultStyle" Value="true"/>
  314. <Style.Triggers>
  315. <Trigger Property="Orientation" Value="Horizontal">
  316. <Setter Property="Width" Value="Auto"/>
  317. <Setter Property="Height" Value="20" />
  318. <Setter Property="Margin" Value="0,1"/>
  319. <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
  320. </Trigger>
  321. <Trigger Property="Orientation" Value="Vertical">
  322. <Setter Property="Width" Value="20"/>
  323. <Setter Property="Height" Value="Auto" />
  324. <Setter Property="Margin" Value="1,0"/>
  325. <Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
  326. </Trigger>
  327. </Style.Triggers>
  328. </Style>
  329. <Style TargetType="{x:Type ScrollViewer}">
  330. <Setter Property="OverridesDefaultStyle" Value="True"/>
  331. <Setter Property="Template">
  332. <Setter.Value>
  333. <ControlTemplate TargetType="{x:Type ScrollViewer}">
  334. <Grid>
  335. <Grid.ColumnDefinitions>
  336. <ColumnDefinition/>
  337. <ColumnDefinition Width="Auto"/>
  338. </Grid.ColumnDefinitions>
  339. <Grid.RowDefinitions>
  340. <RowDefinition/>
  341. <RowDefinition Height="Auto"/>
  342. </Grid.RowDefinitions>
  343. <Rectangle
  344. x:Name="Corner"
  345. Grid.Column="1"
  346. Fill="{x:Null}"
  347. Grid.Row="1"/>
  348. <ScrollContentPresenter
  349. x:Name="PART_ScrollContentPresenter"
  350. CanContentScroll="{TemplateBinding CanContentScroll}"
  351. CanHorizontallyScroll="False"
  352. CanVerticallyScroll="False"
  353. ContentTemplate="{TemplateBinding ContentTemplate}"
  354. Content="{TemplateBinding Content}"
  355. Grid.Column="0"
  356. Margin="{TemplateBinding Padding}"
  357. Grid.Row="0"/>
  358. <ScrollBar
  359. x:Name="PART_VerticalScrollBar"
  360. AutomationProperties.AutomationId="VerticalScrollBar"
  361. Cursor="Arrow"
  362. Grid.Column="1"
  363. Maximum="{TemplateBinding ScrollableHeight}"
  364. Minimum="0"
  365. Grid.Row="0"
  366. Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
  367. Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
  368. ViewportSize="{TemplateBinding ViewportHeight}"/>
  369. <ScrollBar
  370. x:Name="PART_HorizontalScrollBar"
  371. AutomationProperties.AutomationId="HorizontalScrollBar"
  372. Cursor="Arrow"
  373. Grid.Column="0"
  374. Maximum="{TemplateBinding ScrollableWidth}"
  375. Minimum="0"
  376. Orientation="Horizontal"
  377. Grid.Row="1"
  378. Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
  379. Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
  380. ViewportSize="{TemplateBinding ViewportWidth}"/>
  381. </Grid>
  382. </ControlTemplate>
  383. </Setter.Value>
  384. </Setter>
  385. </Style>
  386. </ResourceDictionary>