-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToastWindow.xaml
More file actions
110 lines (104 loc) · 4.39 KB
/
Copy pathToastWindow.xaml
File metadata and controls
110 lines (104 loc) · 4.39 KB
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
<Window x:Class="ToastDesk.ToastWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ToastDesk Notification"
Width="420"
Height="216"
WindowStyle="None"
ResizeMode="NoResize"
ShowInTaskbar="False"
Topmost="True"
ShowActivated="False"
FontFamily="Segoe UI Variable, Segoe UI"
Background="Transparent"
AllowsTransparency="True">
<Border Margin="8"
x:Name="ToastCard"
Padding="16"
RenderTransformOrigin="0.5,0"
Background="{StaticResource PanelBrush}"
BorderBrush="{StaticResource BorderBrushSoft}"
BorderThickness="1"
CornerRadius="10">
<Border.RenderTransform>
<ScaleTransform x:Name="StackScaleTransform" ScaleX="1" ScaleY="1" />
</Border.RenderTransform>
<Border.Effect>
<StaticResource ResourceKey="CardShadow" />
</Border.Effect>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Width="28"
Height="28"
Background="#F4F4F5"
BorderBrush="{StaticResource BorderBrushSoft}"
BorderThickness="1"
CornerRadius="14"
VerticalAlignment="Top">
<TextBlock Text="i"
FontSize="14"
FontWeight="SemiBold"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{StaticResource TextBrush}" />
</Border>
<Grid Grid.Column="1" Margin="12,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<DockPanel LastChildFill="True">
<Button DockPanel.Dock="Right"
Style="{StaticResource SecondaryButtonStyle}"
Width="28"
MinWidth="28"
Height="28"
Padding="0"
Margin="10,-4,-4,0"
Click="DismissButton_Click">
x
</Button>
<TextBlock Text="{Binding Title}"
FontSize="14"
FontWeight="SemiBold"
Foreground="{StaticResource TextBrush}"
TextTrimming="CharacterEllipsis" />
</DockPanel>
<TextBlock Grid.Row="1"
Text="{Binding Message}"
Margin="0,7,0,12"
FontSize="13"
Foreground="{StaticResource TextMutedBrush}"
TextWrapping="Wrap"
MaxHeight="104" />
<DockPanel Grid.Row="2">
<TextBlock Text="{Binding CreatedAtLocalText}"
VerticalAlignment="Center"
FontSize="12"
Foreground="{StaticResource TextMutedBrush}" />
<Button DockPanel.Dock="Right"
Style="{StaticResource PrimaryButtonStyle}"
MinWidth="72"
Height="30"
Margin="8,0,0,0"
HorizontalAlignment="Right"
Click="OpenButton_Click">
Open
</Button>
<Button DockPanel.Dock="Right"
Style="{StaticResource SecondaryButtonStyle}"
MinWidth="82"
Height="30"
HorizontalAlignment="Right"
Click="DismissButton_Click">
Dismiss
</Button>
</DockPanel>
</Grid>
</Grid>
</Border>
</Window>