281493bd4d73de4df7682d3b717699ce4125d5bd
[master-thesis.git] / Parasitemia / Parasitemia / GUI / MainWindow.xaml
1 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2         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" mc:Ignorable="d" x:Name="MainWindow" Height="681.888" Width="787.61" MinHeight="200" MinWidth="300">
3    <DockPanel x:Name="dockPanelMain" LastChildFill="True">
4       <Menu DockPanel.Dock="Top">
5          <MenuItem Header="_File">
6             <MenuItem x:Name="menuNew" Header="_New"  />
7             <MenuItem x:Name="menuOpen" Header="_Open" />
8             <MenuItem x:Name="menuSave" Header="_Save" />
9             <Separator />
10             <MenuItem x:Name="menuExit" Header="_Exit" />
11          </MenuItem>
12          <MenuItem Header="_Images">
13             <MenuItem x:Name="menuAddSourceImage" Header="_Add a source image" />
14          </MenuItem>
15       </Menu>
16
17       <Grid x:Name="gridMain">
18          <Grid.RowDefinitions>
19             <RowDefinition Height="Auto"/>
20             <RowDefinition/>
21          </Grid.RowDefinitions>
22          <Grid.ColumnDefinitions>
23             <ColumnDefinition Width="130"/>
24             <ColumnDefinition/>
25          </Grid.ColumnDefinitions>
26          <Grid x:Name="gridGlobalInfo" Grid.ColumnSpan="2" Margin="3,3,3,3" >
27             <Grid.ColumnDefinitions>
28                <ColumnDefinition Width="Auto"/>
29                <ColumnDefinition/>
30             </Grid.ColumnDefinitions>
31             <Grid.RowDefinitions>
32                <RowDefinition Height="Auto"/>
33                <RowDefinition Height="Auto"/>
34             </Grid.RowDefinitions>
35             <Label x:Name="lblPatient" Margin="10, 3, 3, 3" Content="Patient"/>
36             <Label x:Name="lblGlobalParasitemia" Margin="10,3,3,3" Content="Global parasitemia" Grid.Row="1" />
37             <TextBox x:Name="txtPatient" Grid.Column="1" Margin="3, 3, 10, 3" TextWrapping="Wrap" VerticalAlignment="Center" />
38             <TextBox x:Name="txtGlobalParasitemia" Grid.Column="1" Grid.Row="2" Margin="3, 3, 10, 3" TextWrapping="Wrap" VerticalAlignment="Center" IsReadOnly="True" />
39          </Grid>
40          <Grid Grid.Row="1">
41             <Grid.RowDefinitions>
42                <RowDefinition/>
43                <RowDefinition Height="Auto" />
44             </Grid.RowDefinitions>
45             <Border BorderBrush="Black" BorderThickness="1"  Margin="3" Grid.Row="0" >
46                <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
47                   <StackPanel x:Name="stackPreviews" />
48                </ScrollViewer>
49             </Border>
50             <Button x:Name="butStartAnalysis" Content="Start analysis" Grid.Row="1" Margin="3"/>
51          </Grid>
52          <Grid Grid.Column="2" Grid.Row="2">
53             <Grid.RowDefinitions>
54                <RowDefinition Height="100"/>
55                <RowDefinition/>
56                <RowDefinition Height="60"/>
57             </Grid.RowDefinitions>
58             <ScrollViewer x:Name="scrollViewCurrentImage" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" Background="Black" MinHeight="100" MinWidth="100">
59                <Border x:Name="borderCurrentImage" BorderBrush="Transparent">
60                   <Canvas x:Name="canvasCurrentImage" Height="100" Width="100" />
61                </Border>
62             </ScrollViewer>
63          </Grid>
64       </Grid>
65    </DockPanel>
66 </Window>