-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathToastExample.xaml
More file actions
107 lines (107 loc) · 5.02 KB
/
ToastExample.xaml
File metadata and controls
107 lines (107 loc) · 5.02 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
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.ToastExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<StackPanel wd:PanelHelper.Spacing="2">
<GroupBox Header="Toast Position">
<WrapPanel HorizontalAlignment="Center">
<RadioButton Checked="RadioButton_Checked" Content="Left" />
<RadioButton
Checked="RadioButton_Checked"
Content="Top"
IsChecked="True" />
<RadioButton Checked="RadioButton_Checked" Content="Right" />
<RadioButton Checked="RadioButton_Checked" Content="Bottom" />
</WrapPanel>
</GroupBox>
<GroupBox Header="Window">
<UniformGrid
Height="38"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
wd:PanelHelper.Spacing="2"
Rows="1">
<Button
Click="AddButton_Click"
Content="Info Toast"
Style="{StaticResource WD.PrimaryButton}"
Tag="Info" />
<Button
Click="AddButton_Click"
Content="Error Toast"
Style="{StaticResource WD.DangerPrimaryButton}"
Tag="Error" />
<Button
Click="AddButton_Click"
Content="Warning Toast"
Style="{StaticResource WD.WarningPrimaryButton}"
Tag="Warning" />
<Button
Click="AddButton_Click"
Content="Success Toast"
Style="{StaticResource WD.SuccessPrimaryButton}"
Tag="Success" />
<Button
Click="AddButton_Click"
Content="Long Toast"
Style="{StaticResource WD.SuccessPrimaryButton}"
Tag="Long" />
<Button
Click="AddButton_Click"
Content="IntPtr Window"
Style="{StaticResource WD.SuccessPrimaryButton}"
Tag="IntPtr" />
<Button Click="BtnClear_Click" Content="Clear" />
</UniformGrid>
</GroupBox>
<GroupBox Header="Desktop">
<UniformGrid
Height="38"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
wd:PanelHelper.Spacing="2"
Rows="1">
<Button
Click="AddButtonDesktop_Click"
Content="Info Toast"
Style="{StaticResource WD.PrimaryButton}"
Tag="Info" />
<Button
Click="AddButtonDesktop_Click"
Content="Error Toast"
Style="{StaticResource WD.DangerPrimaryButton}"
Tag="Error" />
<Button
Click="AddButtonDesktop_Click"
Content="Warning Toast"
Style="{StaticResource WD.WarningPrimaryButton}"
Tag="Warning" />
<Button
Click="AddButtonDesktop_Click"
Content="Success Toast"
Style="{StaticResource WD.SuccessPrimaryButton}"
Tag="Success" />
<Button
Click="AddButtonDesktop_Click"
Content="Long Toast"
Style="{StaticResource WD.SuccessPrimaryButton}"
Tag="Long" />
<Button Click="BtnDesktopClear_Click" Content="Clear" />
</UniformGrid>
</GroupBox>
</StackPanel>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ToastExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ToastExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>