|
13 | 13 | <Setter Property="Placement" Value="Center" />
|
14 | 14 | </Style>
|
15 | 15 |
|
| 16 | + <SolidColorBrush x:Key="BlackBackground" Color="Black" /> |
| 17 | + |
16 | 18 | <Style TargetType="{x:Type wpf:DialogHost}">
|
17 | 19 | <Setter Property="DialogMargin" Value="35" />
|
18 | 20 | <Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth5" />
|
|
30 | 32 | <BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
|
31 | 33 | <DiscreteBooleanKeyFrame Value="True" KeyTime="0" />
|
32 | 34 | </BooleanAnimationUsingKeyFrames>
|
| 35 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 36 | + Storyboard.TargetProperty="Background"> |
| 37 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" KeyTime="0" /> |
| 38 | + </ObjectAnimationUsingKeyFrames> |
33 | 39 | <DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity">
|
34 | 40 | <EasingDoubleKeyFrame Value="0" KeyTime="0" />
|
35 | 41 | <EasingDoubleKeyFrame Value="0.56" KeyTime="0:0:0.3">
|
|
69 | 75 | <BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
|
70 | 76 | <DiscreteBooleanKeyFrame Value="False" KeyTime="0:0:0.3" />
|
71 | 77 | </BooleanAnimationUsingKeyFrames>
|
| 78 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 79 | + Storyboard.TargetProperty="Background"> |
| 80 | + <DiscreteObjectKeyFrame Value="{x:Null}" KeyTime="0:0:0.3" /> |
| 81 | + </ObjectAnimationUsingKeyFrames> |
72 | 82 | <DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity">
|
73 | 83 | <EasingDoubleKeyFrame Value="0.56" KeyTime="0" />
|
74 | 84 | <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.3">
|
|
112 | 122 | <BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
|
113 | 123 | <DiscreteBooleanKeyFrame Value="True" KeyTime="0" />
|
114 | 124 | </BooleanAnimationUsingKeyFrames>
|
| 125 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 126 | + Storyboard.TargetProperty="Background"> |
| 127 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" /> |
| 128 | + </ObjectAnimationUsingKeyFrames> |
115 | 129 | <DoubleAnimation Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity"
|
116 | 130 | Duration="0"
|
117 | 131 | To=".56" />
|
|
131 | 145 | <BooleanAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="IsOpen">
|
132 | 146 | <DiscreteBooleanKeyFrame Value="False" KeyTime="0:0:0.3" />
|
133 | 147 | </BooleanAnimationUsingKeyFrames>
|
| 148 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 149 | + Storyboard.TargetProperty="Background"> |
| 150 | + <DiscreteObjectKeyFrame Value="{x:Null}" /> |
| 151 | + </ObjectAnimationUsingKeyFrames> |
| 152 | + <DoubleAnimation Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity" |
| 153 | + To="0" /> |
134 | 154 | </Storyboard>
|
135 | 155 | </VisualState>
|
136 | 156 | </VisualStateGroup>
|
|
177 | 197 | <ControlTemplate.Triggers>
|
178 | 198 | <Trigger Property="IsOpen" Value="True">
|
179 | 199 | <Setter TargetName="ContentPresenter" Property="IsEnabled" Value="False" />
|
180 |
| - <Setter TargetName="PART_ContentCoverGrid" Property="Background" Value="Black" /> |
181 | 200 | <Setter TargetName="PART_ContentCoverGrid" Property="IsHitTestVisible" Value="True" />
|
182 | 201 | </Trigger>
|
183 | 202 | </ControlTemplate.Triggers>
|
|
203 | 222 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="Visibility">
|
204 | 223 | <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0" />
|
205 | 224 | </ObjectAnimationUsingKeyFrames>
|
| 225 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 226 | + Storyboard.TargetProperty="Background"> |
| 227 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" KeyTime="0" /> |
| 228 | + </ObjectAnimationUsingKeyFrames> |
206 | 229 | <DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity">
|
207 | 230 | <EasingDoubleKeyFrame Value="0" KeyTime="0" />
|
208 | 231 | <EasingDoubleKeyFrame Value="0.56" KeyTime="0:0:0.3">
|
|
242 | 265 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="Visibility">
|
243 | 266 | <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" KeyTime="0:0:0.3" />
|
244 | 267 | </ObjectAnimationUsingKeyFrames>
|
| 268 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 269 | + Storyboard.TargetProperty="Background"> |
| 270 | + <DiscreteObjectKeyFrame Value="{x:Null}" KeyTime="0:0:0.3" /> |
| 271 | + </ObjectAnimationUsingKeyFrames> |
245 | 272 | <DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity">
|
246 | 273 | <EasingDoubleKeyFrame Value="0.56" KeyTime="0" />
|
247 | 274 | <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.3">
|
|
285 | 312 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="Visibility">
|
286 | 313 | <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0" />
|
287 | 314 | </ObjectAnimationUsingKeyFrames>
|
| 315 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 316 | + Storyboard.TargetProperty="Background"> |
| 317 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" KeyTime="0" /> |
| 318 | + </ObjectAnimationUsingKeyFrames> |
288 | 319 | <DoubleAnimation Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity"
|
289 | 320 | Duration="0"
|
290 | 321 | To=".56" />
|
|
302 | 333 | <VisualState x:Name="Closed">
|
303 | 334 | <Storyboard>
|
304 | 335 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Popup" Storyboard.TargetProperty="Visibility">
|
305 |
| - <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" KeyTime="0:0:0.3" /> |
| 336 | + <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" KeyTime="0" /> |
| 337 | + </ObjectAnimationUsingKeyFrames> |
| 338 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCoverGrid" |
| 339 | + Storyboard.TargetProperty="Background"> |
| 340 | + <DiscreteObjectKeyFrame Value="{x:Null}" /> |
306 | 341 | </ObjectAnimationUsingKeyFrames>
|
| 342 | + <DoubleAnimation Storyboard.TargetName="PART_ContentCoverGrid" Storyboard.TargetProperty="Opacity" |
| 343 | + To="0" /> |
307 | 344 | </Storyboard>
|
308 | 345 | </VisualState>
|
309 | 346 | </VisualStateGroup>
|
|
0 commit comments