forked from Flow-Launcher/Flow.Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMsgWithButton.xaml
More file actions
84 lines (83 loc) · 2.66 KB
/
MsgWithButton.xaml
File metadata and controls
84 lines (83 loc) · 2.66 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
<Window
x:Class="Flow.Launcher.MsgWithButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Msg"
Width="420"
Height="60"
Background="#ebebeb"
ResizeMode="NoResize"
ShowInTaskbar="False"
SizeToContent="Height"
Topmost="True"
WindowStyle="None">
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
x:Name="showAnimation"
AccelerationRatio="0.2"
Storyboard.TargetProperty="Top"
Duration="0:0:0.3" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Window.Triggers>
<StackPanel Orientation="Vertical">
<Grid
Margin="5"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<ColumnDefinition />
<ColumnDefinition Width="2.852" />
<ColumnDefinition Width="13.148" />
</Grid.ColumnDefinitions>
<Image
x:Name="imgIco"
Width="32"
Height="32"
Margin="0 9"
HorizontalAlignment="Left" />
<Grid
Grid.Column="1"
Margin="5 0 0 0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
x:Name="tbTitle"
FontSize="16"
FontWeight="Medium"
Foreground="#37392c">
Title
</TextBlock>
<TextBlock
x:Name="tbSubTitle"
Grid.Row="1"
Foreground="#8e94a4">
sdfdsf
</TextBlock>
</Grid>
<Image
x:Name="imgClose"
Grid.Column="2"
Grid.ColumnSpan="2"
Width="16"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Cursor="Hand" />
</Grid>
<Button
x:Name="btn"
Margin="5 0 5 5"
HorizontalAlignment="Stretch"
Content="fwafaw"
Foreground="#dcdcdc" />
</StackPanel>
</Window>