-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
60 lines (57 loc) · 2.18 KB
/
MainWindow.xaml
File metadata and controls
60 lines (57 loc) · 2.18 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
<Window
x:Class="HTMLToQPDF.Example.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:HTMLToQPDF.Example"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:HTMLToQPDF.Example.ViewModels"
Title="HTMLToQPDF"
Width="800"
Height="450"
MinWidth="300"
MinHeight="250"
mc:Ignorable="d">
<Window.DataContext>
<vm:MainWindowViewModel />
</Window.DataContext>
<DockPanel LastChildFill="True">
<DockPanel Margin="5" DockPanel.Dock="Bottom">
<StackPanel
DockPanel.Dock="Right"
Orientation="Horizontal">
<CheckBox
Margin="5"
Content="Custom Styles"
IsChecked="{Binding CustomStyles}" />
<Button
Margin="5"
Command="{Binding CreatePDFCommand}"
Content="Create PDF"
Style="{StaticResource ButtonPrimary}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<Button
Margin="5"
Command="{Binding SelectSavePathCommand}"
Content="Select the save path" />
<TextBlock
Margin="5"
HorizontalAlignment="Left"
Style="{StaticResource TextBlockDefault}"
Text="{Binding SavePath}"
TextTrimming="CharacterEllipsis"
ToolTip="{Binding SavePath}" />
</StackPanel>
</DockPanel>
<hc:TextBox
Margin="5"
Padding="10"
VerticalContentAlignment="Top"
hc:InfoElement.Placeholder="<body> Hello world! </body>"
AcceptsReturn="True"
Text="{Binding HTML, UpdateSourceTrigger=PropertyChanged}"
TextWrapping="Wrap" />
</DockPanel>
</Window>