-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathPathIconExample.xaml
More file actions
73 lines (73 loc) · 3.65 KB
/
Copy pathPathIconExample.xaml
File metadata and controls
73 lines (73 loc) · 3.65 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
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.PathIconExample"
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}">
<UniformGrid
HorizontalAlignment="Center"
VerticalAlignment="Center"
wd:PanelHelper.Spacing="4"
Columns="6"
Rows="2">
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.PrimaryButton}">
<wd:PathIcon Data="M682 256h256v256l-98-98-268 268-170-170-256 256-60-60 316-316 170 170 208-208z" />
</Button>
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.DangerPrimaryButton}">
<wd:PathIcon Kind="Arrow" />
</Button>
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.DangerDefaultButton}">
<wd:PathIcon Kind="SortArrow" />
</Button>
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.WarningDefaultButton}">
<wd:PathIcon Kind="SmileyOutline" />
</Button>
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.DefaultButton}">
<wd:PathIcon Kind="Replace" />
</Button>
<Button
wd:Badge.HorizontalOffset="-20"
wd:Badge.IsShow="True"
wd:Badge.VerticalOffset="8"
wd:ElementHelper.IsRound="True"
Style="{StaticResource WD.SuccessDefaultButton}">
<wd:PathIcon Kind="Home" />
</Button>
<Button wd:ElementHelper.IsRound="True" Style="{StaticResource WD.NormalButton}">
<wd:PathIcon Data="M682 256h256v256l-98-98-268 268-170-170-256 256-60-60 316-316 170 170 208-208z" />
</Button>
<Button Style="{StaticResource WD.SuccessPrimaryButton}">
<wd:PathIcon Kind="Arrow" />
</Button>
<Button Style="{StaticResource WD.DangerPrimaryButton}">
<wd:PathIcon Kind="SortArrow" />
</Button>
<Button wd:Badge.IsShow="True" Style="{StaticResource WD.WarningPrimaryButton}">
<wd:PathIcon
Width="20"
Height="20"
Kind="SmileyOutline" />
</Button>
<Button Style="{StaticResource WD.PrimaryButton}">
<wd:PathIcon Kind="Replace" />
</Button>
<Button Style="{StaticResource WD.SuccessPrimaryButton}">
<StackPanel Orientation="Horizontal">
<wd:PathIcon Kind="Home" />
<TextBlock Margin="4,0" Text="Home" />
</StackPanel>
</Button>
</UniformGrid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/PathIconExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/PathIconExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>