|
40 | 40 | <VisualState x:Name="Normal" />
|
41 | 41 | <VisualState x:Name="PointerOver">
|
42 | 42 | <Storyboard>
|
43 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground"> |
44 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlMSEdgeNotificationPointerOverForegroundBrush}" /> |
45 |
| - </ObjectAnimationUsingKeyFrames> |
46 | 43 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Background">
|
47 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlMSEdgeNotificationPointerOverChromeBrush}" /> |
| 44 | + <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPointerOverBackgroundThemeBrush}" /> |
48 | 45 | </ObjectAnimationUsingKeyFrames>
|
49 | 46 | </Storyboard>
|
50 | 47 | </VisualState>
|
51 | 48 | <VisualState x:Name="Pressed">
|
52 | 49 | <Storyboard>
|
53 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Text" Storyboard.TargetProperty="Foreground"> |
54 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlMSEdgeNotificationPointerOverForegroundBrush}" /> |
55 |
| - </ObjectAnimationUsingKeyFrames> |
56 | 50 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Background">
|
57 | 51 | <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlMSEdgeNotificationPointerOverChromeBrush}" />
|
58 | 52 | </ObjectAnimationUsingKeyFrames>
|
|
236 | 230 |
|
237 | 231 | <Button x:Name="OkButton"
|
238 | 232 | Margin="0"
|
239 |
| - FontSize="16" |
| 233 | + FontSize="14" |
240 | 234 | Content="Ok"
|
241 |
| - Height="40" |
242 |
| - Width="120" |
| 235 | + Height="30" |
| 236 | + Width="100" |
243 | 237 | Command="{StaticResource DismissCommand}"
|
244 | 238 | CommandParameter="{Binding ElementName=ExampleInAppNotification}"
|
245 | 239 | AutomationProperties.Name="Ok" />
|
246 | 240 |
|
247 | 241 | <Button x:Name="CancelButton"
|
248 | 242 | Margin="4,0,0,0"
|
249 |
| - FontSize="16" |
| 243 | + FontSize="14" |
250 | 244 | Content="Cancel"
|
251 |
| - Height="40" |
252 |
| - Width="120" |
| 245 | + Height="30" |
| 246 | + Width="100" |
253 | 247 | Command="{StaticResource DismissCommand}"
|
254 | 248 | CommandParameter="{Binding ElementName=ExampleInAppNotification}"
|
255 | 249 | AutomationProperties.Name="Cancel"/>
|
256 | 250 |
|
257 | 251 | </StackPanel>
|
258 | 252 |
|
259 | 253 | <Button x:Name="DismissButton"
|
| 254 | + CornerRadius="2" |
260 | 255 | Grid.Column="2"
|
261 |
| - Margin="4,0,0,0" |
262 |
| - FontSize="16" |
| 256 | + Margin="0 0 2 0" |
| 257 | + FontSize="12" |
| 258 | + Height="43" Width="48" |
263 | 259 | Style="{StaticResource DismissTextBlockButtonStyle}"
|
264 | 260 | Content=""
|
265 | 261 | FontFamily="Segoe MDL2 Assets"
|
266 | 262 | AutomationProperties.Name="Dismiss"
|
267 | 263 | Command="{StaticResource DismissCommand}"
|
268 | 264 | CommandParameter="{Binding ElementName=ExampleInAppNotification}"
|
| 265 | + VerticalAlignment="Center" |
269 | 266 | Visibility="{Binding ShowDismissButton, ElementName=ExampleCustomInAppNotification}">
|
270 | 267 | <Button.RenderTransform>
|
271 |
| - <TranslateTransform x:Name="DismissButtonTransform" X="18" /> |
| 268 | + <TranslateTransform x:Name="DismissButtonTransform" X="25" Y="-5"/> |
272 | 269 | </Button.RenderTransform>
|
273 | 270 | </Button>
|
274 | 271 | </Grid>
|
|
342 | 339 | TextWrapping="WrapWholeWords" />
|
343 | 340 |
|
344 | 341 | <Button x:Name="PART_DismissButton"
|
345 |
| - Grid.Column="1" |
| 342 | + CornerRadius="20" Height="43" Width="48" |
| 343 | + Grid.Column="1" |
| 344 | + VerticalAlignment="Top" |
346 | 345 | Visibility="{Binding ShowDismissButton, RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}"
|
347 |
| - FontSize="16" |
| 346 | + FontSize="12" |
348 | 347 | Style="{StaticResource DismissTextBlockButtonStyle}"
|
349 |
| - Content="" |
350 |
| - FontFamily="Segoe MDL2 Assets" |
351 |
| - AutomationProperties.Name="Dismiss" /> |
| 348 | + Content="" |
| 349 | + FontFamily="Segoe MDL2 Assets" |
| 350 | + AutomationProperties.Name="Dismiss"> |
| 351 | + <Button.RenderTransform> |
| 352 | + <TranslateTransform x:Name="DismissButtonTransform" X="25" Y="-7"/> |
| 353 | + </Button.RenderTransform> |
| 354 | + </Button> |
352 | 355 | </Grid>
|
353 | 356 | </controls:DropShadowPanel>
|
354 | 357 | </Grid>
|
|
0 commit comments