Initial commit
This commit is contained in:
92
ParentWpf/MainWindow.xaml
Normal file
92
ParentWpf/MainWindow.xaml
Normal file
@@ -0,0 +1,92 @@
|
||||
<Window x:Class="ParentWpf.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ParentWpf"
|
||||
mc:Ignorable="d"
|
||||
Title="CommTester (Parent)"
|
||||
Height="600"
|
||||
Width="1000">
|
||||
<Grid Margin="12">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="260"/>
|
||||
<ColumnDefinition Width="12"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="12"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Grid.ColumnSpan="3"
|
||||
Orientation="Horizontal">
|
||||
<Button Content="Start 3 Children"
|
||||
Padding="12,6"
|
||||
Margin="0,0,8,0"
|
||||
Click="StartChildren_Click"/>
|
||||
<Button Content="Ping Selected"
|
||||
Padding="12,6"
|
||||
Margin="0,0,8,0"
|
||||
Click="PingSelected_Click"/>
|
||||
<Button Content="Start Work"
|
||||
Padding="12,6"
|
||||
Margin="0,0,8,0"
|
||||
Click="StartWork_Click"/>
|
||||
<Button Content="Cancel Work"
|
||||
Padding="12,6"
|
||||
Click="CancelWork_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
<GroupBox Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Header="Children">
|
||||
<DockPanel>
|
||||
<TextBlock DockPanel.Dock="Top"
|
||||
Margin="8,6,8,0"
|
||||
Foreground="Gray"
|
||||
FontSize="11"
|
||||
Text="Select a child to inspect its stream."/>
|
||||
<ListBox Margin="8"
|
||||
ItemsSource="{Binding Children}"
|
||||
SelectedItem="{Binding SelectedChild}"
|
||||
DisplayMemberPath="DisplayName"/>
|
||||
</DockPanel>
|
||||
</GroupBox>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Grid.Column="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="12"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold"
|
||||
Text="{Binding SelectedChild.StatusLine}"/>
|
||||
|
||||
<ProgressBar Grid.Row="1"
|
||||
Height="18"
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Value="{Binding SelectedChild.ProgressPercent}"/>
|
||||
|
||||
<GroupBox Grid.Row="3"
|
||||
Header="Stream (Log/Progress/Result)">
|
||||
<ListBox Margin="8"
|
||||
ItemsSource="{Binding SelectedChild.Logs}"/>
|
||||
</GroupBox>
|
||||
|
||||
<TextBlock Grid.Row="4"
|
||||
Foreground="Gray"
|
||||
FontSize="11"
|
||||
Text="{Binding SelectedChild.PipePath}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user