ComboBoxStyle.xaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Style x:Key="ComboBoxFocusVisual">
  4. <Setter Property="Control.Template">
  5. <Setter.Value>
  6. <ControlTemplate>
  7. <Rectangle Margin="4,4,21,4" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
  8. </ControlTemplate>
  9. </Setter.Value>
  10. </Setter>
  11. </Style>
  12. <Geometry x:Key="DownArrowGeometry">M 0 0 L 5 5 L 10 0 Z</Geometry>
  13. <SolidColorBrush x:Key="ToggleButton_BD" Color="Black"/>
  14. <LinearGradientBrush x:Key="ToggleButton_BG" EndPoint="0.5,1" StartPoint="0.5,0">
  15. <GradientStop Color="#FF276EA5" Offset="0"/>
  16. <GradientStop Color="#FF65B4F1" Offset="1"/>
  17. </LinearGradientBrush>
  18. <SolidColorBrush x:Key="ToggleButton_InnerHighlight" Color="#FF809CBE"/>
  19. <SolidColorBrush x:Key="ToggleButton_InnerShadow" Color="#FF334459"/>
  20. <LinearGradientBrush x:Key="ToggleButton_BG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  21. <GradientStop Color="#FF008B48" Offset="0"/>
  22. <GradientStop Color="#FF00F37E" Offset="1"/>
  23. </LinearGradientBrush>
  24. <SolidColorBrush x:Key="ComboBox_DropDown_BG" Color="#FF2A6AB6"/>
  25. <SolidColorBrush x:Key="ComboBox_DropDown_BD" Color="#FF0A2B58"/>
  26. <SolidColorBrush x:Key="ComboBox_BG" Color="White"/>
  27. <SolidColorBrush x:Key="ComboBox_BD" Color="#FF999999"/>
  28. <SolidColorBrush x:Key="ComboBox_BD_InnerShadow" Color="#FF404040"/>
  29. <SolidColorBrush x:Key="ComboBox_BD_InnerHighlight" Color="#FFD2D2D2"/>
  30. <SolidColorBrush x:Key="ComboBox_BG_Unable" Color="#FFDBDBDB"/>
  31. <SolidColorBrush x:Key="ComboBox_BD_Unable" Color="Gray"/>
  32. <SolidColorBrush x:Key="ComboBox_BD_InnerShadow_Unable" Color="#FF838383"/>
  33. <SolidColorBrush x:Key="ToggleButton_Login_BD" Color="#FF092B58"/>
  34. <LinearGradientBrush x:Key="ToggleButton_Login_BG" EndPoint="0.5,1" StartPoint="0.5,0">
  35. <GradientStop Color="#FF0C4277" Offset="0"/>
  36. <GradientStop Color="#FF1373C8" Offset="1"/>
  37. </LinearGradientBrush>
  38. <SolidColorBrush x:Key="ToggleButton_Login_InnerHighlight" Color="#FF416C95"/>
  39. <SolidColorBrush x:Key="ToggleButton_Login_InnerShadow" Color="#FF093861"/>
  40. <SolidColorBrush x:Key="ToggleButton_Login_BD_MouseOver" Color="#FF05162c"/>
  41. <LinearGradientBrush x:Key="ToggleButton_Login_BG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  42. <GradientStop Color="#FF115b9b" Offset="0"/>
  43. <GradientStop Color="#FF1b96de" Offset="1"/>
  44. </LinearGradientBrush>
  45. <SolidColorBrush x:Key="ToggleButton_Login_InnerHighlight_MouseOver" Color="#FF457fb1"/>
  46. <SolidColorBrush x:Key="ToggleButton_Login_InnerShadow_MouseOver" Color="#FF0d496d"/>
  47. <SolidColorBrush x:Key="ToggleButton_ArrowBG" Color="White"/>
  48. <SolidColorBrush x:Key="ToggleButton_BD_Unable" Color="#FF868686"/>
  49. <LinearGradientBrush x:Key="ToggleButton_BG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  50. <GradientStop Color="#FFB1B1B1" Offset="0"/>
  51. <GradientStop Color="#FFDADADA" Offset="1"/>
  52. </LinearGradientBrush>
  53. <SolidColorBrush x:Key="ToggleButton_InnerHighlight_Unable" Color="#FFD8D8D8"/>
  54. <SolidColorBrush x:Key="ToggleButton_InnerShadow_Unable" Color="#FF6C6C6C"/>
  55. <SolidColorBrush x:Key="ComboBox_DropDown_Login_BG" Color="#FF2A6AB6"/>
  56. <SolidColorBrush x:Key="ComboBox_DropDown_Login_BD" Color="#FF0A2B58"/>
  57. <SolidColorBrush x:Key="ComboBox_Login_BG" Color="#FF1e4f8a"/>
  58. <SolidColorBrush x:Key="ComboBox_Login_BD" Color="#FF092b58"/>
  59. <!-- Toggle Button Style -->
  60. <Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
  61. <Setter Property="SnapsToDevicePixels" Value="True"/>
  62. <Setter Property="OverridesDefaultStyle" Value="true"/>
  63. <Setter Property="BorderBrush" Value="{DynamicResource ToggleButton_BD}"/>
  64. <Setter Property="Background" Value="{DynamicResource ToggleButton_BG}"/>
  65. <Setter Property="BorderThickness" Value="1"/>
  66. <Setter Property="IsTabStop" Value="false"/>
  67. <Setter Property="Focusable" Value="false"/>
  68. <Setter Property="ClickMode" Value="Press"/>
  69. <Setter Property="Template">
  70. <Setter.Value>
  71. <ControlTemplate TargetType="{x:Type ToggleButton}">
  72. <Grid Background="#00FFFFFF">
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition/>
  75. <ColumnDefinition Width="25"/>
  76. </Grid.ColumnDefinitions>
  77. <Border x:Name="BG" Grid.Column="1" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Cursor="Hand"/>
  78. <Border x:Name="InnerBD_Highlight" Grid.Column="1" BorderThickness="1,1,0,0" BorderBrush="{DynamicResource ToggleButton_InnerHighlight}">
  79. <Border x:Name="InnerBD_Shadow" BorderThickness="0,0,1,1" BorderBrush="{DynamicResource ToggleButton_InnerShadow}"/>
  80. </Border>
  81. <Path x:Name="Arrow" Grid.Column="1" Data="{StaticResource DownArrowGeometry}" Fill="{DynamicResource ToggleButton_ArrowBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand">
  82. <Path.Effect>
  83. <DropShadowEffect BlurRadius="0" ShadowDepth="1"/>
  84. </Path.Effect>
  85. </Path>
  86. </Grid>
  87. <ControlTemplate.Triggers>
  88. <Trigger Property="IsMouseOver" Value="true">
  89. <Setter Property="Background" TargetName="BG" Value="{DynamicResource ToggleButton_BG_MouseOver}"/>
  90. </Trigger>
  91. <Trigger Property="IsEnabled" Value="false">
  92. <Setter Property="BorderBrush" TargetName="BG" Value="{DynamicResource ToggleButton_BD_Unable}"/>
  93. <Setter Property="Background" TargetName="BG" Value="{DynamicResource ToggleButton_BG_Unable}"/>
  94. <Setter Property="Fill" TargetName="Arrow" Value="#FF999999"/>
  95. <Setter Property="Effect" TargetName="Arrow">
  96. <Setter.Value>
  97. <DropShadowEffect BlurRadius="0" ShadowDepth="1" Opacity="0"/>
  98. </Setter.Value>
  99. </Setter>
  100. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ToggleButton_InnerShadow_Unable}"/>
  101. <Setter Property="BorderBrush" TargetName="InnerBD_Highlight" Value="{DynamicResource ToggleButton_InnerHighlight_Unable}"/>
  102. </Trigger>
  103. </ControlTemplate.Triggers>
  104. </ControlTemplate>
  105. </Setter.Value>
  106. </Setter>
  107. </Style>
  108. <Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
  109. <Setter Property="BorderBrush" Value="{DynamicResource ToggleButton_BD}"/>
  110. <Setter Property="Background" Value="{DynamicResource ToggleButton_BG}"/>
  111. <Setter Property="BorderThickness" Value="1"/>
  112. <Setter Property="OverridesDefaultStyle" Value="true"/>
  113. <Setter Property="IsTabStop" Value="false"/>
  114. <Setter Property="Focusable" Value="false"/>
  115. <Setter Property="ClickMode" Value="Press"/>
  116. <Setter Property="Template">
  117. <Setter.Value>
  118. <ControlTemplate TargetType="{x:Type ToggleButton}">
  119. <Border x:Name="BG" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Cursor="Hand">
  120. <Grid>
  121. <Border x:Name="InnerBD_Highlight" BorderThickness="1.5,1.5,0,0" BorderBrush="{DynamicResource ToggleButton_InnerHighlight}">
  122. <Border x:Name="InnerBD_Shadow" BorderThickness="0,0,1.5,1.5" BorderBrush="{DynamicResource ToggleButton_InnerShadow}"/>
  123. </Border>
  124. <Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="{DynamicResource ToggleButton_ArrowBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand">
  125. <Path.Effect>
  126. <DropShadowEffect BlurRadius="0" ShadowDepth="1"/>
  127. </Path.Effect>
  128. </Path>
  129. </Grid>
  130. </Border>
  131. <ControlTemplate.Triggers>
  132. <Trigger Property="IsMouseOver" Value="true">
  133. <Setter Property="Background" TargetName="BG" Value="{DynamicResource ToggleButton_BG_MouseOver}"/>
  134. </Trigger>
  135. <Trigger Property="IsEnabled" Value="false">
  136. <Setter Property="BorderBrush" TargetName="BG" Value="{DynamicResource ToggleButton_BD_Unable}"/>
  137. <Setter Property="Background" TargetName="BG" Value="{DynamicResource ToggleButton_BG_Unable}"/>
  138. <Setter Property="Fill" TargetName="Arrow" Value="#FF999999"/>
  139. <Setter Property="Effect" TargetName="Arrow">
  140. <Setter.Value>
  141. <DropShadowEffect BlurRadius="0" ShadowDepth="1" Opacity="0"/>
  142. </Setter.Value>
  143. </Setter>
  144. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ToggleButton_InnerShadow_Unable}"/>
  145. <Setter Property="BorderBrush" TargetName="InnerBD_Highlight" Value="{DynamicResource ToggleButton_InnerHighlight_Unable}"/>
  146. </Trigger>
  147. </ControlTemplate.Triggers>
  148. </ControlTemplate>
  149. </Setter.Value>
  150. </Setter>
  151. </Style>
  152. <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
  153. <Setter Property="OverridesDefaultStyle" Value="true"/>
  154. <Setter Property="AllowDrop" Value="true"/>
  155. <Setter Property="MinWidth" Value="0"/>
  156. <Setter Property="MinHeight" Value="0"/>
  157. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  158. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  159. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  160. <Setter Property="Template">
  161. <Setter.Value>
  162. <ControlTemplate TargetType="{x:Type TextBox}">
  163. <ScrollViewer x:Name="PART_ContentHost" Background="Transparent" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  164. </ControlTemplate>
  165. </Setter.Value>
  166. </Setter>
  167. </Style>
  168. <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
  169. <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
  170. <Border BorderBrush="Gray" BorderThickness="0,0,1,1">
  171. <Grid x:Name="Placement" SnapsToDevicePixels="true">
  172. <Grid.ColumnDefinitions>
  173. <ColumnDefinition Width="*"/>
  174. <ColumnDefinition Width="25"/>
  175. </Grid.ColumnDefinitions>
  176. <Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom">
  177. <Border x:Name="DropDownBorder" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
  178. <ScrollViewer x:Name="DropDownScrollViewer">
  179. <Grid RenderOptions.ClearTypeHint="Enabled">
  180. <Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
  181. <Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=DropDownBorder}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
  182. </Canvas>
  183. <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  184. </Grid>
  185. </ScrollViewer>
  186. </Border>
  187. </Popup>
  188. <TextBox x:Name="PART_EditableTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}" Margin="{TemplateBinding Padding}" Style="{StaticResource ComboBoxEditableTextBox}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
  189. <ToggleButton Grid.Column="1" Margin="1,1,0,0" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
  190. </Grid>
  191. </Border>
  192. </Border>
  193. <ControlTemplate.Triggers>
  194. <Trigger Property="IsKeyboardFocusWithin" Value="true">
  195. <Setter Property="Foreground" Value="Black"/>
  196. </Trigger>
  197. <Trigger Property="IsDropDownOpen" Value="true">
  198. </Trigger>
  199. <Trigger Property="HasItems" Value="false">
  200. <Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
  201. </Trigger>
  202. <Trigger Property="IsEnabled" Value="false">
  203. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  204. <Setter Property="Background" Value="#FFF4F4F4"/>
  205. </Trigger>
  206. <Trigger Property="IsGrouping" Value="true">
  207. <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  208. </Trigger>
  209. <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
  210. </Trigger>
  211. <Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
  212. <Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
  213. <Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
  214. </Trigger>
  215. </ControlTemplate.Triggers>
  216. </ControlTemplate>
  217. <!-- ComboBox Style -->
  218. <Style TargetType="{x:Type ComboBox}">
  219. <Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}"/>
  220. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
  221. <Setter Property="Background" Value="{DynamicResource ComboBox_BG}"/>
  222. <Setter Property="BorderBrush" Value="{DynamicResource ComboBox_BD}"/>
  223. <Setter Property="FontFamily" Value="Arial"/>
  224. <Setter Property="BorderThickness" Value="1"/>
  225. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  226. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  227. <Setter Property="Padding" Value="4,3"/>
  228. <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  229. <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
  230. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  231. <Setter Property="Template">
  232. <Setter.Value>
  233. <ControlTemplate TargetType="{x:Type ComboBox}">
  234. <Grid x:Name="MainGrid" SnapsToDevicePixels="true">
  235. <Grid.ColumnDefinitions>
  236. <ColumnDefinition Width="*"/>
  237. <ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
  238. </Grid.ColumnDefinitions>
  239. <Popup x:Name="PART_Popup" Grid.ColumnSpan="2" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" Focusable="False" AllowsTransparency="True" PopupAnimation="Fade" VerticalOffset="2" >
  240. <Border x:Name="DropDownBorder" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
  241. <ScrollViewer x:Name="DropDownScrollViewer" Margin="0,5">
  242. <Grid RenderOptions.ClearTypeHint="Enabled">
  243. <Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
  244. <Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=DropDownBorder}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
  245. </Canvas>
  246. <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  247. </Grid>
  248. </ScrollViewer>
  249. </Border>
  250. <Popup.Effect>
  251. <DropShadowEffect Color="#71000000"/>
  252. </Popup.Effect>
  253. </Popup>
  254. <Border x:Name="Bd" Grid.ColumnSpan="2" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
  255. <Border x:Name="InnerBD_Shadow" BorderBrush="{DynamicResource ComboBox_BD_InnerShadow}" BorderThickness="1,1,0,0">
  256. <Border x:Name="InnerBD_Highlight" BorderBrush="{DynamicResource ComboBox_BD_InnerHighlight}" BorderThickness="0,0,1,1">
  257. </Border>
  258. </Border>
  259. </Border>
  260. <ToggleButton x:Name="ToggleButton" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Cursor="Hand" Margin="2"/>
  261. <ContentPresenter ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="4,3,20,3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
  262. </Grid>
  263. <ControlTemplate.Triggers>
  264. <Trigger Property="HasItems" Value="false">
  265. <Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
  266. </Trigger>
  267. <Trigger Property="IsEnabled" Value="false">
  268. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  269. <Setter Property="Background" TargetName="Bd" Value="{DynamicResource ComboBox_BG_Unable}"/>
  270. <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource ComboBox_BD_Unable}"/>
  271. <Setter Property="BorderBrush" TargetName="InnerBD_Shadow" Value="{DynamicResource ComboBox_BD_InnerShadow_Unable}"/>
  272. </Trigger>
  273. <Trigger Property="IsGrouping" Value="true">
  274. <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  275. </Trigger>
  276. <Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
  277. <Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
  278. <Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
  279. </Trigger>
  280. </ControlTemplate.Triggers>
  281. </ControlTemplate>
  282. </Setter.Value>
  283. </Setter>
  284. <Style.Triggers>
  285. <Trigger Property="IsEditable" Value="true">
  286. <Setter Property="BorderBrush" Value="Black"/>
  287. <Setter Property="Background" Value="White"/>
  288. <Setter Property="IsTabStop" Value="false"/>
  289. <Setter Property="Padding" Value="3"/>
  290. <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
  291. </Trigger>
  292. </Style.Triggers>
  293. </Style>
  294. </ResourceDictionary>