-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMainWindow.xaml
64 lines (64 loc) · 3.71 KB
/
MainWindow.xaml
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
<Window
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfSample"
xmlns:Wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" x:Name="window" x:Class="WpfSample.MainWindow"
mc:Ignorable="d"
Title="Ookii.CommandLine WPF Sample" Height="450" Width="800">
<Grid Margin="6,6,6,6">
<Grid.Resources >
<Style TargetType="TextBox" >
<Setter Property="Margin" Value="5,5,5,5" />
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
<Style TargetType="Label" >
<Setter Property="Margin" Value="5,5,5,5" />
</Style>
<Style TargetType="CheckBox" >
<Setter Property="Margin" Value="5,10,5,5" />
</Style>
<Style TargetType="ListBox" >
<Setter Property="Margin" Value="5,5,5,5" />
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
<Style TargetType="Button" >
<Setter Property="Margin" Value="5,5,5,5" />
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0">Source</Label>
<TextBox Grid.Row="0" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.Source, ElementName=window}" />
<Label Grid.Row="1" Grid.Column="0">Destination</Label>
<TextBox Grid.Row="1" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.Destination, ElementName=window}" />
<Label Grid.Row="2" Grid.Column="0">OperationIndex</Label>
<TextBox Grid.Row="2" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.OperationIndex, ElementName=window}" />
<Label Grid.Row="3" Grid.Column="0">Date</Label>
<TextBox Grid.Row="3" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.Date, ElementName=window, TargetNullValue=(null)}" />
<Label Grid.Row="4" Grid.Column="0">Count</Label>
<TextBox Grid.Row="4" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.Count, ElementName=window}" />
<Label Grid.Row="5" Grid.Column="0">Verbose</Label>
<CheckBox Grid.Row="5" Grid.Column="1" IsEnabled="False" IsChecked="{Binding Arguments.Verbose, ElementName=window}" />
<Label Grid.Row="6" Grid.Column="0">Day</Label>
<TextBox Grid.Row="6" Grid.Column="1" IsReadOnly="True" Text="{Binding Arguments.Day, ElementName=window, TargetNullValue=(null)}" />
<Label Grid.Row="7" Grid.Column="0">Values</Label>
<ListBox Grid.Row="7" Grid.Column="1" ItemsSource="{Binding Arguments.Values, ElementName=window}" />
<Button x:Name="_helpButton" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Right" Content="Help" Click="_helpButton_Click"/>
</Grid>
</Window>