blob: 9b3d292b001c5ab4206ee10f64352dd002cdf7e7 (
plain)
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
|
<Window x:Class="Tango.JobProgressTester.UI.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:jobViews="clr-namespace:Tango.PPC.Jobs.Views;assembly=Tango.PPC.Jobs"
xmlns:local="clr-namespace:Tango.JobProgressTester.UI"
mc:Ignorable="d"
Title="Job Progress Tester" Height="800" Width="600" d:DataContext="{d:DesignInstance Type=local:MainWindowVM,IsDesignTimeCreatable=False}">
<Grid IsEnabled="{Binding IsFree}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="90"/>
<RowDefinition Height="600*"/>
<RowDefinition Height="90"/>
</Grid.RowDefinitions>
<ComboBox FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center" Width="350" ItemsSource="{Binding Jobs}" SelectedItem="{Binding SelectedJob}" DisplayMemberPath="Name" Margin="96,28"></ComboBox>
<Grid Grid.Row="1">
<Viewbox Stretch="Uniform">
<jobViews:JobProgressView Width="800" Height="1000" DataContext="{Binding JobProgressViewVM}" />
</Viewbox>
</Grid>
<Grid Grid.Row="2">
<StackPanel Margin="20">
<TextBlock HorizontalAlignment="Center">
<Run Text="{Binding Progress,Mode=OneWay,StringFormat='0.0'}"></Run>
<Run>/</Run>
<Run Text="{Binding JobHandler.Status.TotalProgress,Mode=OneWay,StringFormat='0.0'}"></Run>
</TextBlock>
<Slider VerticalAlignment="Center" Margin="0 10 0 0" Maximum="{Binding JobHandler.Status.TotalProgress}" Value="{Binding Progress,Mode=TwoWay}"></Slider>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Window>
|