|
38 | 38 | <RowDefinition Height="*" />
|
39 | 39 | </Grid.RowDefinitions>
|
40 | 40 | <Border Background="Transparent"
|
41 |
| - BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
42 |
| - BorderThickness="1" |
43 |
| - CornerRadius="2"> |
| 41 | + BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
| 42 | + BorderThickness="1" |
| 43 | + CornerRadius="2"> |
44 | 44 | <Border.Effect>
|
45 | 45 | <BlurEffect Radius="6"/>
|
46 | 46 | </Border.Effect>
|
|
53 | 53 | <RowDefinition Height="Auto"/>
|
54 | 54 | <RowDefinition Height="Auto"/>
|
55 | 55 | </Grid.RowDefinitions>
|
56 |
| - <Rectangle Grid.Row="0" |
57 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
58 |
| - Height="{StaticResource PopupTopBottomMargin}"/> |
| 56 | + <Border Grid.Row="0" |
| 57 | + CornerRadius="2 2 0 0" |
| 58 | + Background="{Binding ElementName=templateRoot, Path=Background}" |
| 59 | + Height="{StaticResource PopupTopBottomMargin}"/> |
59 | 60 | <ContentPresenter Grid.Row="1"/>
|
60 | 61 | <Rectangle Grid.Row="2"
|
61 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
| 62 | + Fill="{Binding ElementName=templateRoot, Path=Background}" |
62 | 63 | Height="{StaticResource PopupContentPresenterExtend}"/>
|
63 | 64 |
|
64 | 65 | <Grid Grid.Row="3">
|
|
69 | 70 | </Grid.ColumnDefinitions>
|
70 | 71 | <Rectangle Grid.Column="0"
|
71 | 72 | Width="{StaticResource PopupLeftRightMargin}"
|
72 |
| - Fill="{DynamicResource MaterialDesignPaper}"/> |
| 73 | + Fill="{Binding ElementName=templateRoot, Path=Background}"/> |
73 | 74 | <Grid Grid.Column="1"
|
74 | 75 | Width="{Binding ElementName=templateRoot, Path=ActualWidth}"
|
75 |
| - Height="{Binding ElementName=templateRoot, Path=ActualHeight, Converter={StaticResource MathAddConverter}, ConverterParameter=12}"/> |
| 76 | + Height="{Binding ElementName=templateRoot, Path=ActualHeight}"/> |
76 | 77 | <Rectangle Grid.Column="2"
|
77 | 78 | MinWidth="{StaticResource PopupLeftRightMargin}"
|
78 |
| - Fill="{DynamicResource MaterialDesignPaper}"/> |
| 79 | + Fill="{Binding ElementName=templateRoot, Path=Background}"/> |
79 | 80 | </Grid>
|
80 | 81 |
|
81 |
| - <Rectangle Grid.Row="4" |
82 |
| - Height="{StaticResource PopupTopBottomMargin}" |
83 |
| - Fill="{DynamicResource MaterialDesignPaper}" /> |
| 82 | + <Border Grid.Row="4" |
| 83 | + CornerRadius="0 0 2 2" |
| 84 | + Height="{StaticResource PopupTopBottomMargin}" |
| 85 | + Background="{Binding ElementName=templateRoot, Path=Background}" /> |
84 | 86 | </Grid>
|
85 | 87 | </Grid>
|
86 | 88 | </ControlTemplate>
|
|
92 | 94 | <RowDefinition Height="*" />
|
93 | 95 | </Grid.RowDefinitions>
|
94 | 96 | <Border Background="Transparent"
|
95 |
| - BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
96 |
| - BorderThickness="1" |
97 |
| - CornerRadius="2"> |
| 97 | + BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
| 98 | + BorderThickness="1" |
| 99 | + CornerRadius="2"> |
98 | 100 | <Border.Effect>
|
99 | 101 | <BlurEffect Radius="6"/>
|
100 | 102 | </Border.Effect>
|
|
108 | 110 | <RowDefinition Height="*"/>
|
109 | 111 | <RowDefinition Height="Auto"/>
|
110 | 112 | </Grid.RowDefinitions>
|
111 |
| - <Rectangle Grid.Row="0" |
112 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
113 |
| - Height="{StaticResource PopupTopBottomMargin}"/> |
| 113 | + <Border Grid.Row="0" |
| 114 | + CornerRadius="2 2 0 0" |
| 115 | + Background="{Binding ElementName=templateRoot, Path=Background}" |
| 116 | + Height="{StaticResource PopupTopBottomMargin}"/> |
114 | 117 |
|
115 | 118 | <Grid Grid.Row="1">
|
116 | 119 | <Grid.ColumnDefinitions>
|
|
120 | 123 | </Grid.ColumnDefinitions>
|
121 | 124 | <Rectangle Grid.Column="0"
|
122 | 125 | Width="{StaticResource PopupLeftRightMargin}"
|
123 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
| 126 | + Fill="{Binding ElementName=templateRoot, Path=Background}" |
124 | 127 | />
|
125 | 128 | <Grid Grid.Column="1"
|
126 | 129 | Width="{Binding ElementName=templateRoot, Path=ActualWidth}"
|
127 |
| - Height="{Binding ElementName=templateRoot, Path=ActualHeight, Converter={StaticResource MathAddConverter}, ConverterParameter=12}"/> |
| 130 | + Height="{Binding ElementName=templateRoot, Path=ActualHeight}"/> |
128 | 131 | <Rectangle Grid.Column="2"
|
129 | 132 | MinWidth="{StaticResource PopupLeftRightMargin}"
|
130 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
| 133 | + Fill="{Binding ElementName=templateRoot, Path=Background}" |
131 | 134 | />
|
132 | 135 | </Grid>
|
133 | 136 |
|
134 | 137 | <Rectangle Grid.Row="2"
|
135 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
| 138 | + Fill="{Binding ElementName=templateRoot, Path=Background}" |
136 | 139 | Height="{StaticResource PopupContentPresenterExtend}"/>
|
137 | 140 |
|
138 | 141 | <ContentPresenter Grid.Row="3"/>
|
139 | 142 |
|
140 |
| - <Rectangle Grid.Row="4" |
141 |
| - Height="{StaticResource PopupTopBottomMargin}" |
142 |
| - Fill="{DynamicResource MaterialDesignPaper}" /> |
| 143 | + <Border Grid.Row="4" |
| 144 | + CornerRadius="0 0 2 2" |
| 145 | + Height="{StaticResource PopupTopBottomMargin}" |
| 146 | + Background="{Binding ElementName=templateRoot, Path=Background}" /> |
143 | 147 | </Grid>
|
144 | 148 | </Grid>
|
145 | 149 | </ControlTemplate>
|
|
151 | 155 | <RowDefinition Height="*" />
|
152 | 156 | </Grid.RowDefinitions>
|
153 | 157 | <Border Background="Transparent"
|
154 |
| - BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
155 |
| - BorderThickness="1" |
156 |
| - CornerRadius="2"> |
| 158 | + BorderBrush="{DynamicResource MaterialDesignShadowBrush}" |
| 159 | + BorderThickness="1" |
| 160 | + CornerRadius="2"> |
157 | 161 | <Border.Effect>
|
158 | 162 | <BlurEffect Radius="6"/>
|
159 | 163 | </Border.Effect>
|
|
164 | 168 | <RowDefinition Height="*"/>
|
165 | 169 | <RowDefinition Height="Auto"/>
|
166 | 170 | </Grid.RowDefinitions>
|
167 |
| - <Rectangle Grid.Row="0" |
168 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
| 171 | + <Border Grid.Row="0" |
| 172 | + CornerRadius="2 2 0 0" |
| 173 | + Background="{Binding ElementName=templateRoot, Path=Background}" |
169 | 174 | Height="{StaticResource PopupTopBottomMargin}"/>
|
170 | 175 |
|
171 | 176 | <ContentPresenter Grid.Row="1"/>
|
172 | 177 |
|
173 |
| - <Rectangle Grid.Row="2" |
174 |
| - Height="{StaticResource PopupTopBottomMargin}" |
175 |
| - Fill="{DynamicResource MaterialDesignPaper}" /> |
| 178 | + <Border Grid.Row="2" |
| 179 | + CornerRadius="0 0 2 2" |
| 180 | + Height="{StaticResource PopupTopBottomMargin}" |
| 181 | + Background="{Binding ElementName=templateRoot, Path=Background}" /> |
176 | 182 | </Grid>
|
177 | 183 | </Grid>
|
178 | 184 | </ControlTemplate>
|
|
387 | 393 |
|
388 | 394 | <ControlTemplate x:Key="MaterialDesignFloatingHintComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
389 | 395 | <Grid x:Name="templateRoot"
|
| 396 | + Background="{TemplateBinding Background}" |
390 | 397 | SnapsToDevicePixels="True">
|
391 | 398 | <Grid x:Name="InnerRoot">
|
392 | 399 | <Grid.ColumnDefinitions>
|
|
432 | 439 | <wpf:ComboBoxPopup x:Name="PART_Popup"
|
433 | 440 | AllowsTransparency="true"
|
434 | 441 | Focusable="False"
|
435 |
| - HorizontalOffset="-11" |
| 442 | + HorizontalOffset="-11.5" |
436 | 443 | IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
437 | 444 | PlacementTarget="{Binding ElementName=templateRoot}"
|
438 | 445 | SnapsToDevicePixels="True"
|
|
441 | 448 | PopupAnimation="Fade"
|
442 | 449 | VerticalOffset="0"
|
443 | 450 | DefaultVerticalOffset="5"
|
444 |
| - DownVerticalOffset="-27" |
| 451 | + DownVerticalOffset="-15.5" |
445 | 452 | UpVerticalOffset="15"
|
446 | 453 | UpContentTemplate="{StaticResource PopupContentUpTemplate}"
|
447 | 454 | DownContentTemplate="{StaticResource PopupContentDownTemplate}"
|
448 | 455 | DefaultContentTemplate="{StaticResource PopupContentDefaultTemplate}">
|
449 | 456 | <ContentControl>
|
450 |
| - <ScrollViewer Background="{DynamicResource MaterialDesignPaper}" |
451 |
| - MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
| 457 | + <ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
| 458 | + Background="{TemplateBinding Background}"> |
452 | 459 | <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" />
|
453 | 460 | </ScrollViewer>
|
454 | 461 | </ContentControl>
|
|
465 | 472 | <Setter TargetName="contentPresenter" Property="Visibility" Value="Collapsed" />
|
466 | 473 | </Trigger>
|
467 | 474 | <Trigger Property="wpf:HintAssist.IsFloating" Value="True">
|
468 |
| - <Setter TargetName="InnerRoot" Property="Margin" Value="0 12 0 0" /> |
| 475 | + <Setter TargetName="InnerRoot" Property="Margin" Value="0 11.5 0 0" /> |
469 | 476 | </Trigger>
|
470 | 477 | <MultiTrigger>
|
471 | 478 | <MultiTrigger.Conditions>
|
|
511 | 518 |
|
512 | 519 | <Style x:Key="MaterialDesignComboBox" TargetType="{x:Type ComboBox}">
|
513 | 520 | <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
514 |
| - <Setter Property="Background" Value="Transparent"/> |
| 521 | + <Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}"/> |
515 | 522 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignTextBoxBorder}"/>
|
516 | 523 | <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>
|
517 | 524 | <Setter Property="BorderThickness" Value="0 0 0 1"/>
|
|
0 commit comments