|
|
@ -57,17 +57,8 @@ |
|
|
<Setter Property="Template"> |
|
|
<Setter Property="Template"> |
|
|
<ControlTemplate> |
|
|
<ControlTemplate> |
|
|
<DataValidationErrors> |
|
|
<DataValidationErrors> |
|
|
<Grid RowDefinitions="Auto, *, Auto" ColumnDefinitions="*,32"> |
|
|
<Grid ColumnDefinitions="*,32"> |
|
|
<ContentPresenter x:Name="HeaderContentPresenter" |
|
|
|
|
|
Grid.Row="0" |
|
|
|
|
|
Grid.Column="0" |
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
|
|
IsVisible="False" |
|
|
|
|
|
FontWeight="{DynamicResource ComboBoxHeaderThemeFontWeight}" |
|
|
|
|
|
Margin="{DynamicResource ComboBoxTopHeaderMargin}" |
|
|
|
|
|
VerticalAlignment="Top" /> |
|
|
|
|
|
<Border x:Name="Background" |
|
|
<Border x:Name="Background" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="0" |
|
|
Grid.Column="0" |
|
|
Grid.ColumnSpan="2" |
|
|
Grid.ColumnSpan="2" |
|
|
Background="{TemplateBinding Background}" |
|
|
Background="{TemplateBinding Background}" |
|
|
@ -76,7 +67,6 @@ |
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
MinWidth="{DynamicResource ComboBoxThemeMinWidth}" /> |
|
|
MinWidth="{DynamicResource ComboBoxThemeMinWidth}" /> |
|
|
<Border x:Name="HighlightBackground" |
|
|
<Border x:Name="HighlightBackground" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="0" |
|
|
Grid.Column="0" |
|
|
Grid.ColumnSpan="2" |
|
|
Grid.ColumnSpan="2" |
|
|
Background="{DynamicResource ComboBoxBackgroundUnfocused}" |
|
|
Background="{DynamicResource ComboBoxBackgroundUnfocused}" |
|
|
@ -85,7 +75,6 @@ |
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
IsVisible="False"/> |
|
|
IsVisible="False"/> |
|
|
<TextBlock x:Name="PlaceholderTextBlock" |
|
|
<TextBlock x:Name="PlaceholderTextBlock" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="0" |
|
|
Grid.Column="0" |
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
|
|
@ -96,14 +85,12 @@ |
|
|
<ContentControl x:Name="ContentPresenter" |
|
|
<ContentControl x:Name="ContentPresenter" |
|
|
Content="{TemplateBinding SelectionBoxItem}" |
|
|
Content="{TemplateBinding SelectionBoxItem}" |
|
|
ContentTemplate="{TemplateBinding ItemTemplate}" |
|
|
ContentTemplate="{TemplateBinding ItemTemplate}" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="0" |
|
|
Grid.Column="0" |
|
|
Margin="{TemplateBinding Padding}" |
|
|
Margin="{TemplateBinding Padding}" |
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" /> |
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" /> |
|
|
|
|
|
|
|
|
<Border x:Name="DropDownOverlay" |
|
|
<Border x:Name="DropDownOverlay" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="1" |
|
|
Grid.Column="1" |
|
|
Background="Transparent" |
|
|
Background="Transparent" |
|
|
Margin="0,1,1,1" |
|
|
Margin="0,1,1,1" |
|
|
@ -112,7 +99,6 @@ |
|
|
HorizontalAlignment="Right" /> |
|
|
HorizontalAlignment="Right" /> |
|
|
|
|
|
|
|
|
<PathIcon x:Name="DropDownGlyph" |
|
|
<PathIcon x:Name="DropDownGlyph" |
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="1" |
|
|
Grid.Column="1" |
|
|
UseLayoutRounding="False" |
|
|
UseLayoutRounding="False" |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
@ -208,9 +194,6 @@ |
|
|
<Setter Property="Background" Value="{DynamicResource ComboBoxBackgroundDisabled}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource ComboBoxBackgroundDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxBorderBrushDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxBorderBrushDisabled}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
<Style Selector="^ /template/ ContentPresenter#HeaderContentPresenter"> |
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxForegroundDisabled}" /> |
|
|
|
|
|
</Style> |
|
|
|
|
|
<Style Selector="^ /template/ ContentControl#ContentPresenter"> |
|
|
<Style Selector="^ /template/ ContentControl#ContentPresenter"> |
|
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxForegroundDisabled}" /> |
|
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxForegroundDisabled}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|