-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
InAppNotification.xaml
38 lines (34 loc) · 2.42 KB
/
InAppNotification.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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Microsoft.Toolkit.Uwp.UI.Controls">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls.Core/InAppNotification/Styles/MSEdgeNotificationStyle.xaml" />
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls.Core/InAppNotification/Styles/VSCodeNotificationStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="BaseInAppNotificationsStyle"
TargetType="local:InAppNotification">
<Setter Property="Background" Value="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}" />
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
<Setter Property="BorderBrush" Value="{ThemeResource SystemControlTransientBorderBrush}" />
<Setter Property="Visibility" Value="Collapsed" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="MinHeight" Value="55" />
<Setter Property="FontSize" Value="14" />
<Setter Property="RenderTransformOrigin" Value="0.5,1" />
<Setter Property="Margin" Value="24,12" />
<Setter Property="Padding" Value="24,12" />
<Setter Property="MaxWidth" Value="960" />
<Setter Property="MinWidth" Value="132" />
<Setter Property="AnimationDuration" Value="0:0:0.100" />
<Setter Property="VerticalOffset" Value="100" />
<Setter Property="HorizontalOffset" Value="0" />
<Setter Property="AutomationProperties.LandmarkType" Value="Custom" />
<!-- The setter value is localized using x:Uid but we still need to set it explicitly to avoid a compiler warning -->
<Setter x:Uid="WCT_InAppNotification_LandmarkProperty" Property="AutomationProperties.LocalizedLandmarkType" Value="Notification" />
<Setter Property="AutomationProperties.LiveSetting" Value="Assertive" />
<Setter Property="Template" Value="{StaticResource MSEdgeNotificationTemplate}" />
</Style>
<Style BasedOn="{StaticResource BaseInAppNotificationsStyle}" TargetType="local:InAppNotification"/>
</ResourceDictionary>