Repository navigation
Expand file tree
/
Copy pathNotificationWindow.xaml
More file actions
66 lines (61 loc) · 2.73 KB
/
Copy pathNotificationWindow.xaml
File metadata and controls
66 lines (61 loc) · 2.73 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
<Window x:Class="BackgroundClicker.Wpf.NotificationWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
ShowInTaskbar="False"
SizeToContent="WidthAndHeight"
Topmost="True"
Title="Notification"
Opacity="0">
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.12"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Window.Triggers>
<Border x:Name="RootBorder"
Background="{StaticResource SurfacePanelBrush}"
BorderBrush="{StaticResource LineStrongBrush}"
BorderThickness="1"
CornerRadius="{StaticResource Radius}"
MaxWidth="460"
TextElement.FontFamily="{StaticResource FontUI}"
TextElement.FontSize="{StaticResource FontSizeBody}"
TextElement.Foreground="{StaticResource TextPrimaryBrush}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Rectangle x:Name="AccentBar" Grid.Column="0" Fill="{StaticResource AccentBrush}"/>
<StackPanel Grid.Column="1" Margin="20,18,20,16">
<TextBlock x:Name="MessageTextBlock"
Text="Placeholder message"
FontSize="{StaticResource FontSizeMedium}"
Foreground="{StaticResource TextPrimaryBrush}"
TextWrapping="Wrap"
LineHeight="20"
Margin="0,0,0,18"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="SecondaryButton"
Content="Cancel"
Style="{StaticResource SecondaryButton}"
MinWidth="88" Height="32" Margin="0,0,8,0"
Click="SecondaryButton_Click"/>
<Button x:Name="PrimaryButton"
Content="OK"
Style="{StaticResource PrimaryButton}"
MinWidth="110" Height="32"
Click="PrimaryButton_Click"/>
</StackPanel>
</StackPanel>
</Grid>
</Border>
</Window>