-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
MaterialDesignTheme.PopupBox.xaml
424 lines (411 loc) · 32 KB
/
MaterialDesignTheme.PopupBox.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf"
xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Menu.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToolTip.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type Button}" x:Key="MaterialDesignPopupBoxButton">
<Setter Property="VerticalContentAlignment" Value="Bottom" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="Padding" Value="16 0 16 16" />
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup Name="CommonStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.3" To="Normal">
<VisualTransition.GeneratedEasingFunction>
<CircleEase EasingMode="EaseOut"/>
</VisualTransition.GeneratedEasingFunction>
</VisualTransition>
</VisualStateGroup.Transitions>
<VisualState Name="Normal"/>
<VisualState Name="MouseOver">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="Opacity" To="0.1" Duration="0"/>
</Storyboard>
</VisualState>
<VisualState Name="Disabled">
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" To="0.48" Duration="0"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border x:Name="MouseOverBorder" Opacity="0" Background="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"/>
<wpf:Ripple Feedback="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"
Focusable="False"
MinHeight="48"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
<converters:NullableToVisibilityConverter x:Key="NullVisibilityConverter" />
<converters:NullableToVisibilityConverter x:Key="InvertedNullVisibilityConverter" NullValue="Visible" NotNullValue="Collapsed" />
<converters:BrushRoundConverter x:Key="BrushRoundConverter"/>
<wpf:PackIcon Kind="DotsVertical" x:Key="MaterialDesignPopupBoxToggleContent" x:Shared="False" Margin="4 0 4 0" Width="24" Height="24"
Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=Foreground}" />
<Style TargetType="{x:Type wpf:PopupBox}" x:Key="MaterialDesignPopupBox">
<Setter Property="ToggleContent" Value="{StaticResource MaterialDesignPopupBoxToggleContent}" />
<Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource MaterialDesignFlatButtonRipple}" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="PopupHorizontalOffset" Value="5"/>
<Setter Property="PopupVerticalOffset" Value="5"/>
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth3" />
<Setter Property="TextElement.FontWeight" Value="Normal" />
<Setter Property="Padding" Value="0 8 0 8" />
<Setter Property="Focusable" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type wpf:PopupBox}">
<ControlTemplate.Resources>
<Style TargetType="Separator" BasedOn="{StaticResource MaterialDesignSeparator}"/>
<Style TargetType="ToggleButton" x:Key="ToggleButtonStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<wpf:Ripple Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Focusable="False"
ClipToBounds="False"
wpf:RippleAssist.IsCentered="True"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ControlTemplate.Resources>
<Grid>
<ToggleButton x:Name="PART_Toggle" Style="{StaticResource ToggleButtonStyle}" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=TwoWay}"
Content="{TemplateBinding ToggleContent}" ContentTemplate="{TemplateBinding ToggleContentTemplate}"
Cursor="Hand" TabIndex="{TemplateBinding TabIndex}" VerticalAlignment="Center" IsTabStop="{TemplateBinding IsTabStop}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
<wpf:PopupEx x:Name="PART_Popup"
IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=TwoWay}"
CustomPopupPlacementCallback="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupPlacementMethod}"
HorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupHorizontalOffset}"
VerticalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupVerticalOffset}"
PlacementTarget="{Binding ElementName=PART_Toggle}"
Placement="Custom"
PopupAnimation="Fade"
AllowsTransparency="True">
<wpf:Card Content="{TemplateBinding PopupContent}" ContentTemplate="{TemplateBinding PopupContentTemplate}"
Foreground="{DynamicResource MaterialDesignBody}"
Padding="{TemplateBinding Padding}"
RenderOptions.ClearTypeHint="Enabled"
Margin="5">
<wpf:Card.Resources>
<Style TargetType="Button" BasedOn="{StaticResource MaterialDesignPopupBoxButton}" />
</wpf:Card.Resources>
</wpf:Card>
</wpf:PopupEx>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="0.23"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="MaterialDesignToolPopupBox" BasedOn="{StaticResource MaterialDesignPopupBox}" TargetType="wpf:PopupBox">
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignToolForeground}" />
<Setter Property="Padding" Value="4"/>
</Style>
<Style x:Key="MaterialDesignToolForegroundPopupBox" BasedOn="{StaticResource MaterialDesignToolPopupBox}" TargetType="wpf:PopupBox">
<Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>
</Style>
<wpf:PackIcon x:Shared="False" x:Key="MaterialDesignMultiFloatingActionPopupBoxIcon"
Kind="Plus" Width="24" Height="24" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=Foreground}" />
<Style TargetType="{x:Type wpf:PopupBox}" x:Key="MaterialDesignMultiFloatingActionPopupBox">
<Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}"/>
<Setter Property="wpf:RippleAssist.Feedback" Value="White" />
<Setter Property="PlacementMode" Value="TopAndAlignCentres" />
<Setter Property="PopupMode" Value="Click" />
<Setter Property="ToolTipService.Placement" Value="Left" />
<Setter Property="ToolTipService.IsEnabled" Value="False" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth2" />
<Setter Property="Width" Value="56" />
<Setter Property="Height" Value="56" />
<Setter Property="Focusable" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type wpf:PopupBox}">
<ControlTemplate.Resources>
<Style TargetType="{x:Type ToolTip}" BasedOn="{StaticResource MaterialDesignToolTip}">
<Style.Setters>
<Setter Property="Margin" Value="8 10 8 10" />
</Style.Setters>
</Style>
<Style TargetType="ToggleButton" x:Key="ToggleButtonStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Grid x:Name="RootGrid" Background="{x:Null}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup Name="CheckedStates">
<VisualStateGroup.Transitions>
<VisualTransition From="*" To="Checked">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ContentRotateTransform"
Storyboard.TargetProperty="Angle"
To="45"
Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualTransition>
<VisualTransition From="Checked" To="Unchecked">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ContentRotateTransform"
Storyboard.TargetProperty="Angle"
To="0"
Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualTransition>
</VisualStateGroup.Transitions>
<VisualState x:Name="Checked">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ContentRotateTransform"
Storyboard.TargetProperty="Angle"
To="45"
Duration="0" />
</Storyboard>
</VisualState>
<VisualState x:Name="Unchecked">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ContentRotateTransform"
Storyboard.TargetProperty="Angle"
To="0"
Duration="0" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}">
<Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"
Effect="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=(wpf:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}"
x:Name="border">
</Ellipse>
</AdornerDecorator>
<wpf:Ripple Focusable="False"
Clip="{Binding ElementName=GeometryEllipse, Path=RenderedGeometry}" ClipToBounds="True"
wpf:RippleAssist.IsCentered="True"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
<!-- additional layer so we don't rotate the ripple directly which can cause jumpyness under certain layouts -->
<ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"
RenderTransformOrigin=".5,.5" Focusable="False">
<ContentControl.RenderTransform>
<RotateTransform x:Name="ContentRotateTransform" Angle="0" />
</ContentControl.RenderTransform>
</ContentControl>
</wpf:Ripple>
<Ellipse x:Name="GeometryEllipse" Fill="Transparent" IsHitTestVisible="False" Focusable="False" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="0.23"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="wpf:ShadowAssist.Darken" Value="True" />
</Trigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=PopupMode}"
Value="{x:Static wpf:PopupBoxPopupMode.MouseOver}">
<Setter TargetName="RootGrid" Property="Background" Value="Transparent" />
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=PopupMode}"
Value="{x:Static wpf:PopupBoxPopupMode.MouseOverEager}">
<Setter TargetName="RootGrid" Property="Background" Value="Transparent" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Storyboard x:Key="Open">
<DoubleAnimation Storyboard.TargetName="PART_PopupContentControl" Storyboard.TargetProperty="Opacity"
To="1" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="ExplicitToggleContent" Storyboard.TargetProperty="Opacity"
To="0" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="ExplicitToggleCheckedContent" Storyboard.TargetProperty="Opacity"
To="1" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
<Storyboard x:Key="Close">
<DoubleAnimation Storyboard.TargetName="PART_PopupContentControl" Storyboard.TargetProperty="Opacity"
Duration="0:0:0.8">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="ExplicitToggleContent" Storyboard.TargetProperty="Opacity"
To="1" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="ExplicitToggleCheckedContent" Storyboard.TargetProperty="Opacity"
To="0" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</ControlTemplate.Resources>
<Grid>
<ToggleButton x:Name="PART_Toggle" Style="{StaticResource ToggleButtonStyle}"
IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=TwoWay}"
Cursor="Hand"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
Foreground="{TemplateBinding Foreground}"
IsTabStop="{TemplateBinding IsTabStop}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
ToolTip="{TemplateBinding ToolTip}"
ToolTipService.Placement="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=(ToolTipService.Placement)}">
<Grid>
<ContentControl x:Name="StandardToggleContent" Content="{TemplateBinding ToggleContent}" ContentTemplate="{TemplateBinding ToggleContentTemplate}"
Visibility="{TemplateBinding ToggleCheckedContent, Converter={StaticResource InvertedNullVisibilityConverter}}" Focusable="False"/>
<ContentControl x:Name="ExplicitToggleContent" Content="{TemplateBinding ToggleContent}" ContentTemplate="{TemplateBinding ToggleContentTemplate}"
Visibility="{TemplateBinding ToggleCheckedContent, Converter={StaticResource NullVisibilityConverter}}" Focusable="False"/>
<ContentControl x:Name="ExplicitToggleCheckedContent" Content="{TemplateBinding ToggleCheckedContent}" ContentTemplate="{TemplateBinding ToggleCheckedContentTemplate}"
Visibility="{TemplateBinding ToggleCheckedContent, Converter={StaticResource NullVisibilityConverter}}"
Opacity="0"
RenderTransformOrigin=".5,.5"
Focusable="False">
<ContentControl.RenderTransform>
<RotateTransform Angle="-45" />
</ContentControl.RenderTransform>
</ContentControl>
</Grid>
</ToggleButton>
<wpf:PopupEx x:Name="PART_Popup"
IsOpen="False"
CustomPopupPlacementCallback="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupPlacementMethod}"
PlacementTarget="{Binding ElementName=PART_Toggle}"
Placement="Custom"
PopupAnimation="None"
AllowsTransparency="True">
<Grid>
<!-- with PopupBox.PopupMode == MouseOverEager the popup is always open, with
content hidden. but Transparent doesn't seem to register hit test in the popup.
this opacity is the lowest I could get to register hit test. might try and speak
to MS about this one, I *think* it is a bug -->
<Border Background="White" Opacity="0.002" />
<ContentControl Content="{TemplateBinding PopupContent}" ContentTemplate="{TemplateBinding PopupContentTemplate}"
Visibility="{TemplateBinding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
Margin="5" Padding="8"
Opacity="0" x:Name="PART_PopupContentControl">
<ContentControl.Resources>
<ResourceDictionary>
<Style TargetType="{x:Type ToolTip}" BasedOn="{StaticResource MaterialDesignToolTip}">
<Style.Setters>
<Setter Property="Margin" Value="16 4 16 4" />
</Style.Setters>
</Style>
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
<Style.Setters>
<Setter Property="ToolTipService.Placement" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=(ToolTipService.Placement)}"/>
<Setter Property="ToolTipService.InitialShowDelay" Value="0" />
<Setter Property="Margin" Value="4" />
</Style.Setters>
</Style>
</ResourceDictionary>
</ContentControl.Resources>
</ContentControl>
</Grid>
</wpf:PopupEx>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsPopupOpen" Value="True">
<Setter TargetName="PART_Popup" Property="IsOpen" Value="True" />
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Open}" />
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource Close}" />
</Trigger.ExitActions>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="PopupMode" Value="MouseOverEager" />
<Condition Property="IsVisible" Value="True" />
</MultiTrigger.Conditions>
<Setter TargetName="PART_Popup" Property="IsOpen" Value="True" />
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="ToggleContent" Value="{StaticResource MaterialDesignMultiFloatingActionPopupBoxIcon}" />
<Style.Triggers>
<Trigger Property="UnfurlOrientation" Value="Horizontal">
<Setter Property="ToolTipService.Placement" Value="Custom" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type wpf:PopupBox}"
x:Key="MaterialDesignMultiFloatingActionLightPopupBox"
BasedOn="{StaticResource MaterialDesignMultiFloatingActionPopupBox}">
<Setter Property="Background" Value="{DynamicResource PrimaryHueLightBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueLightBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueLightForegroundBrush}"/>
</Style>
<Style TargetType="{x:Type wpf:PopupBox}"
x:Key="MaterialDesignMultiFloatingActionDarkPopupBox"
BasedOn="{StaticResource MaterialDesignMultiFloatingActionPopupBox}">
<Setter Property="Background" Value="{DynamicResource PrimaryHueDarkBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueDarkBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueDarkForegroundBrush}"/>
</Style>
<Style TargetType="{x:Type wpf:PopupBox}"
x:Key="MaterialDesignMultiFloatingActionAccentPopupBox"
BasedOn="{StaticResource MaterialDesignMultiFloatingActionPopupBox}">
<Setter Property="Background" Value="{DynamicResource SecondaryHueMidBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource SecondaryHueMidBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidForegroundBrush}"/>
</Style>
</ResourceDictionary>