|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
6 | 7 | mc:Ignorable="d"
|
7 | 8 | d:DesignHeight="300" d:DesignWidth="300">
|
8 | 9 | <DockPanel>
|
9 | 10 | <Menu IsMainMenu="True" DockPanel.Dock="Top">
|
10 | 11 | <MenuItem Header="_File">
|
11 | 12 | <MenuItem Header="Save">
|
12 | 13 | <MenuItem.Icon>
|
13 |
| - <Viewbox Width="16" Height="16"> |
14 |
| - <Canvas Width="24" Height="24"> |
15 |
| - <Path Data="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z" Fill="{DynamicResource MaterialDesignBody}" /> |
16 |
| - </Canvas> |
17 |
| - </Viewbox> |
| 14 | + <materialDesign:PackIcon Kind="ContentSave" /> |
18 | 15 | </MenuItem.Icon>
|
19 | 16 | </MenuItem>
|
20 | 17 | <MenuItem Header="Save As.." />
|
21 | 18 | <MenuItem Header="Exit" InputGestureText="Ctrl+E">
|
22 | 19 | <MenuItem.Icon>
|
23 |
| - <Viewbox Width="16" Height="16"> |
24 |
| - <Canvas Width="24" Height="24"> |
25 |
| - <Path Data="M19,3H5C3.89,3 3,3.89 3,5V9H5V5H19V19H5V15H3V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M10.08,15.58L11.5,17L16.5,12L11.5,7L10.08,8.41L12.67,11H3V13H12.67L10.08,15.58Z" Fill="{DynamicResource MaterialDesignBody}" /> |
26 |
| - </Canvas> |
27 |
| - </Viewbox> |
| 20 | + <materialDesign:PackIcon Kind="ExitToApp" /> |
28 | 21 | </MenuItem.Icon>
|
29 | 22 | </MenuItem>
|
30 | 23 | <Separator />
|
|
42 | 35 | <MenuItem Header="_Edit">
|
43 | 36 | <MenuItem Header="_Cut" Command="Cut">
|
44 | 37 | <MenuItem.Icon>
|
45 |
| - <Viewbox Width="16" Height="16"> |
46 |
| - <Canvas Width="24" Height="24"> |
47 |
| - <Path Data="M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z" Fill="{DynamicResource MaterialDesignBody}" /> |
48 |
| - </Canvas> |
49 |
| - </Viewbox> |
| 38 | + <materialDesign:PackIcon Kind="ContentCut" /> |
50 | 39 | </MenuItem.Icon>
|
51 | 40 | </MenuItem>
|
52 | 41 | <MenuItem Header="_Copy" Command="Copy">
|
53 | 42 | <MenuItem.Icon>
|
54 |
| - <Viewbox Width="16" Height="16"> |
55 |
| - <Canvas Width="24" Height="24"> |
56 |
| - <Path Data="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" Fill="{DynamicResource MaterialDesignBody}" /> |
57 |
| - </Canvas> |
58 |
| - </Viewbox> |
| 43 | + <materialDesign:PackIcon Kind="ContentCopy" /> |
59 | 44 | </MenuItem.Icon>
|
60 | 45 | </MenuItem>
|
61 | 46 | <MenuItem Header="_Paste" Command="Paste">
|
62 | 47 | <MenuItem.Icon>
|
63 |
| - <Viewbox Width="16" Height="16"> |
64 |
| - <Canvas Width="24" Height="24"> |
65 |
| - <Path Data="M19,20H5V4H7V7H17V4H19M12,2A1,1 0 0,1 13,3A1,1 0 0,1 12,4A1,1 0 0,1 11,3A1,1 0 0,1 12,2M19,2H14.82C14.4,0.84 13.3,0 12,0C10.7,0 9.6,0.84 9.18,2H5A2,2 0 0,0 3,4V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V4A2,2 0 0,0 19,2Z" Fill="{DynamicResource MaterialDesignBody}" /> |
66 |
| - </Canvas> |
67 |
| - </Viewbox> |
| 48 | + <materialDesign:PackIcon Kind="ContentPaste" /> |
68 | 49 | </MenuItem.Icon>
|
69 | 50 | </MenuItem>
|
70 | 51 | </MenuItem>
|
71 | 52 | </Menu>
|
72 | 53 | <ToolBarTray DockPanel.Dock="Top">
|
73 | 54 | <ToolBar Style="{DynamicResource MaterialDesignToolBar}">
|
74 | 55 | <Button ToolTip="Follow me on Twitter" Click="TwitterButton_OnClick">
|
75 |
| - <Viewbox Width="16" Height="16"> |
76 |
| - <Canvas Width="24" Height="24"> |
77 |
| - <Path Data="M17.71,9.33C17.64,13.95 14.69,17.11 10.28,17.31C8.46,17.39 7.15,16.81 6,16.08C7.34,16.29 9,15.76 9.9,15C8.58,14.86 7.81,14.19 7.44,13.12C7.82,13.18 8.22,13.16 8.58,13.09C7.39,12.69 6.54,11.95 6.5,10.41C6.83,10.57 7.18,10.71 7.64,10.74C6.75,10.23 6.1,8.38 6.85,7.16C8.17,8.61 9.76,9.79 12.37,9.95C11.71,7.15 15.42,5.63 16.97,7.5C17.63,7.38 18.16,7.14 18.68,6.86C18.47,7.5 18.06,7.97 17.56,8.33C18.1,8.26 18.59,8.13 19,7.92C18.75,8.45 18.19,8.93 17.71,9.33M20,2H4A2,2 0 0,0 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" Fill="{DynamicResource MaterialDesignBody}" /> |
78 |
| - </Canvas> |
79 |
| - </Viewbox> |
| 56 | + <materialDesign:PackIcon Kind="TwitterBox" /> |
80 | 57 | </Button>
|
81 | 58 | <Button ToolTip="Save">
|
82 |
| - <Viewbox Width="16" Height="16"> |
83 |
| - <Canvas Width="24" Height="24"> |
84 |
| - <Path Data="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z" Fill="{DynamicResource MaterialDesignBody}" /> |
85 |
| - </Canvas> |
86 |
| - </Viewbox> |
| 59 | + <materialDesign:PackIcon Kind="ContentSave" /> |
87 | 60 | </Button>
|
88 | 61 | <Separator />
|
89 | 62 | <Button Command="Cut" ToolTip="Cut" ToolBar.OverflowMode="AsNeeded">
|
90 |
| - <Viewbox Width="16" Height="16"> |
91 |
| - <Canvas Width="24" Height="24"> |
92 |
| - <Path Data="M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z" Fill="{DynamicResource MaterialDesignBody}" /> |
93 |
| - </Canvas> |
94 |
| - </Viewbox> |
| 63 | + <materialDesign:PackIcon Kind="ContentCut" /> |
95 | 64 | </Button>
|
96 | 65 | <Button Command="Copy" ToolTip="Copy that stuff" ToolBar.OverflowMode="AsNeeded">
|
97 |
| - <Viewbox Width="16" Height="16"> |
98 |
| - <Canvas Width="24" Height="24"> |
99 |
| - <Path Data="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" Fill="{DynamicResource MaterialDesignBody}" /> |
100 |
| - </Canvas> |
101 |
| - </Viewbox> |
| 66 | + <materialDesign:PackIcon Kind="ContentCopy" /> |
102 | 67 | </Button>
|
103 | 68 | <Separator />
|
104 | 69 | <Button Command="Paste" ToolTip="Paste some stuff" ToolBar.OverflowMode="AsNeeded">
|
105 |
| - <Viewbox Width="16" Height="16"> |
106 |
| - <Canvas Width="24" Height="24"> |
107 |
| - <Path Data="M19,20H5V4H7V7H17V4H19M12,2A1,1 0 0,1 13,3A1,1 0 0,1 12,4A1,1 0 0,1 11,3A1,1 0 0,1 12,2M19,2H14.82C14.4,0.84 13.3,0 12,0C10.7,0 9.6,0.84 9.18,2H5A2,2 0 0,0 3,4V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V4A2,2 0 0,0 19,2Z" Fill="{DynamicResource MaterialDesignBody}" /> |
108 |
| - </Canvas> |
109 |
| - </Viewbox> |
| 70 | + <materialDesign:PackIcon Kind="ContentPaste" /> |
110 | 71 | </Button>
|
111 | 72 | <Separator />
|
112 | 73 | <Label Content="Font size:" VerticalAlignment="Center"/>
|
|
120 | 81 | Check
|
121 | 82 | </CheckBox>
|
122 | 83 | <Button ToolTip="Take a nap" ToolBar.OverflowMode="Always">
|
123 |
| - <Viewbox Width="16" Height="16"> |
124 |
| - <Canvas Width="24" Height="24"> |
125 |
| - <Path Data="M19,7H11V14H3V5H1V20H3V17H21V20H23V11A4,4 0 0,0 19,7M7,13A3,3 0 0,0 10,10A3,3 0 0,0 7,7A3,3 0 0,0 4,10A3,3 0 0,0 7,13Z" Fill="{DynamicResource MaterialDesignBody}" /> |
126 |
| - </Canvas> |
127 |
| - </Viewbox> |
| 84 | + <materialDesign:PackIcon Kind="Hotel" /> |
128 | 85 | </Button>
|
129 | 86 | <RadioButton GroupName="XXX" Content="Radio" />
|
130 | 87 | <RadioButton GroupName="XXX" Content="Ga Ga" />
|
|
0 commit comments