-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotificationUndoView.xaml
43 lines (42 loc) · 1.55 KB
/
NotificationUndoView.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
39
40
41
42
43
<UserControl
x:Class="Anidow.Pages.Components.Notification.NotificationUndoView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI"
xmlns:controls="clr-namespace:Notifications.Wpf.Core.Controls;assembly=Notifications.Wpf.Core"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:s="https://github.com/canton7/Stylet"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid Margin="8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock
Margin="0,0,24,0"
DockPanel.Dock="Top"
FontWeight="Medium"
Text="{Binding Title}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap" />
<TextBlock
Grid.Row="1"
Margin="0,0,12,8"
Opacity=".8"
Text="{Binding Message}"
TextWrapping="Wrap" />
<Button
Grid.Row="2"
HorizontalAlignment="Right"
VerticalAlignment="Center"
controls:Notification.CloseOnClick="True"
Command="{s:Action Undo,
ActionNotFound=Disable}">
Undo
</Button>
</Grid>
</UserControl>