diff options
Diffstat (limited to 'Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml')
| -rw-r--r-- | Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml index a02292d95..503f8c20c 100644 --- a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ComboboxStyle.xaml @@ -64,7 +64,7 @@ </Setter.Value> </Setter> </Style> - <Style TargetType="{x:Type ComboBox}"> + <Style x:Key="TangoComboboxStyle" TargetType="{x:Type ComboBox}"> <Setter Property="FocusVisualStyle" Value="{x:Null}"/> <Setter Property="Foreground" Value="{DynamicResource ControlForegroundKey}"/> <Setter Property="Background" Value="Transparent"/> @@ -171,30 +171,30 @@ </ControlTemplate> </Setter.Value> </Setter> - </Style> - <Style TargetType="{x:Type ComboBoxItem}"> - <Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True" /> - <Setter Property="Control.Template"> - <Setter.Value> - <ControlTemplate TargetType="{x:Type ComboBoxItem}"> - <Border x:Name="ItemBorder" Background="{DynamicResource ComboboxItemBackground}" BorderBrush="Transparent" BorderThickness="1"> - <ContentPresenter /> - </Border> - <ControlTemplate.Triggers> - <Trigger Property="IsMouseOver" Value="true"> - <Setter Property="Background" TargetName="ItemBorder" Value="{DynamicResource ComboboxItemMouseOverBackground}"/> - </Trigger> + <Style.Resources> + <Style TargetType="{x:Type ComboBoxItem}"> + <Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True" /> + <Setter Property="Control.Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type ComboBoxItem}"> + <Border x:Name="ItemBorder" Background="{DynamicResource ComboboxItemBackground}" BorderBrush="Transparent" BorderThickness="1"> + <ContentPresenter /> + </Border> + <ControlTemplate.Triggers> + <Trigger Property="IsMouseOver" Value="true"> + <Setter Property="Background" TargetName="ItemBorder" Value="{DynamicResource ComboboxItemMouseOverBackground}"/> + </Trigger> - <Trigger Property="IsKeyboardFocusWithin" Value="true"> - <Setter Property="Background" TargetName="ItemBorder" Value="{DynamicResource ComboboxItemMouseOverBackground}"/> - </Trigger> + <Trigger Property="IsKeyboardFocusWithin" Value="true"> + <Setter Property="Background" TargetName="ItemBorder" Value="{DynamicResource ComboboxItemMouseOverBackground}"/> + </Trigger> - </ControlTemplate.Triggers> - </ControlTemplate> - </Setter.Value> - </Setter> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + </Style.Resources> </Style> - <Style x:Key="{x:Static ToolBar.ComboBoxStyleKey}" - BasedOn="{StaticResource {x:Type ComboBox}}" - TargetType="{x:Type ComboBox}" /> + </ResourceDictionary>
\ No newline at end of file |
