19
19
attached:WindowElement.ExtendContentToNonClientArea=" True"
20
20
attached:WindowElement.SaveWindowPosition=" True"
21
21
Height =" 500" Width =" 350" >
22
+ <ctrl : Window .NonClientAreaContent>
23
+ <StackPanel
24
+ Orientation =" Horizontal"
25
+ HorizontalAlignment =" Right" >
26
+ <Button
27
+ x : Name =" GithubButton"
28
+ Width =" 46"
29
+ Height =" 29"
30
+ ToolTip =" Open project on Github"
31
+ Style =" {StaticResource MaterialDesignTitleBarButton}" >
32
+ <materialDesign : PackIcon
33
+ Kind =" Github"
34
+ Height =" 20"
35
+ Width =" 20"
36
+ Foreground =" {StaticResource PrimaryHueMidBrush}" />
37
+ </Button >
38
+ <Button
39
+ x : Name =" DownloadButton"
40
+ Width =" 46"
41
+ Height =" 29"
42
+ ToolTip =" Download excel template"
43
+ Style =" {StaticResource MaterialDesignTitleBarButton}" >
44
+ <materialDesign : PackIcon
45
+ Kind =" Download"
46
+ Height =" 20"
47
+ Width =" 20"
48
+ Foreground =" {StaticResource PrimaryHueMidBrush}" />
49
+ </Button >
50
+ </StackPanel >
51
+ </ctrl : Window .NonClientAreaContent>
22
52
<ctrl : Window .IconContent>
23
53
<Image
24
54
Margin =" 7,5,0,5"
92
122
Style =" {StaticResource MaterialDesignFlatMidBgButton}"
93
123
Content =" Generate" />
94
124
</StackPanel >
95
- <StackPanel
96
- Margin =" 10,40,10,10"
97
- Orientation =" Horizontal"
98
- VerticalAlignment =" Top"
99
- HorizontalAlignment =" Right" >
100
- <Button
101
- x : Name =" DownloadButton"
102
- ToolTip =" Download excel template"
103
- Style =" {StaticResource MaterialDesignFlatButton}" >
104
- <materialDesign : PackIcon
105
- Kind =" Download"
106
- Height =" 20"
107
- Width =" 20"
108
- Foreground =" {StaticResource PrimaryHueMidBrush}" />
109
- </Button >
110
- </StackPanel >
111
125
</Grid >
112
126
</ctrl : Window >
0 commit comments