e763beadfeabaf97c676df6699e45dd9316ebdb0
[master-thesis.git] / Parasitemia / ParasitemiaUI / XAML / MainWindow.xaml
1 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5         mc:Ignorable="d"
6         x:Name="MainWindow" Height="700" Width="1000" MinHeight="300" MinWidth="400" Title="Parasitemia" Icon="pack://application:,,,/Resources/icon.ico" ResizeMode="CanResizeWithGrip">
7    <DockPanel x:Name="dockPanelMain" LastChildFill="True">
8       <Menu DockPanel.Dock="Top">
9          <MenuItem Header="_File">
10             <MenuItem x:Name="menuNew" Header="_New" InputGestureText="Ctrl+N" />
11             <MenuItem x:Name="menuOpen" Header="_Open" InputGestureText="Ctrl+O" />
12             <MenuItem x:Name="menuSave" Header="_Save" InputGestureText="Ctrl+S" />
13             <MenuItem x:Name="menuSaveAs" Header="Save _As..." InputGestureText="Ctrl+Shift+S" />
14             <Separator />
15             <MenuItem x:Name="menuExit" Header="_Exit" />
16          </MenuItem>
17          <MenuItem Header="_Images">
18             <MenuItem x:Name="menuAddSourceImage" Header="_Add a source image" />
19          </MenuItem>
20          <MenuItem x:Name="menuAnalysis" Header="_Analysis">
21             <MenuItem x:Name="menuStartAnalysis" Header="_Show analysis window" />
22          </MenuItem>
23          <MenuItem x:Name="menuView" Header="_View">
24             <MenuItem x:Name="menuHightlightRBC" Header="_Highlight all erytrocytes" IsCheckable="True" />
25          </MenuItem>
26          <MenuItem x:Name="menuHelp" Header="_Help">
27             <MenuItem x:Name="menuAbout" Header="_About" />
28          </MenuItem>
29       </Menu>
30       <StatusBar DockPanel.Dock="Bottom" >
31          <StatusBarItem>
32             <TextBlock Name="txtDocumentStatus" />
33          </StatusBarItem>
34          <StatusBarItem>
35             <TextBlock Name="txtMessageStatus" />
36          </StatusBarItem>
37       </StatusBar>
38       <Grid x:Name="gridMain">
39          <Grid.RowDefinitions>
40             <RowDefinition Height="Auto"/>
41             <RowDefinition/>
42          </Grid.RowDefinitions>
43          <Grid.ColumnDefinitions>
44             <ColumnDefinition Width="180" />
45             <ColumnDefinition/>
46          </Grid.ColumnDefinitions>
47          <Grid x:Name="gridGlobalInfo" Grid.ColumnSpan="2" Margin="3,3,3,3" >
48             <Grid.ColumnDefinitions>
49                <ColumnDefinition Width="101"/>
50                <ColumnDefinition Width="21"/>
51                <ColumnDefinition/>
52             </Grid.ColumnDefinitions>
53             <Grid.RowDefinitions>
54                <RowDefinition Height="Auto"/>
55                <RowDefinition Height="Auto"/>
56             </Grid.RowDefinitions>
57             <Label x:Name="lblPatient" Margin="10,0,3,0 " Content="Patient ID" Grid.ColumnSpan="2"/>
58             <Label x:Name="lblGlobalParasitemia" Margin="10,0,3,0" Content="Global parasitemia" Grid.Row="1" Grid.ColumnSpan="2" />
59             <TextBox x:Name="txtPatient" Grid.Column="2" Margin="3,4,10,4" TextWrapping="Wrap" VerticalAlignment="Center" />
60             <TextBox x:Name="txtGlobalParasitemia" Grid.Column="2" Grid.Row="1" Margin="3,4,10,4" TextWrapping="Wrap" VerticalAlignment="Center" IsReadOnly="True" />
61          </Grid>
62          <Border BorderBrush="Black" BorderThickness="0"  Margin="3" Grid.Row="1" >
63             <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
64                <StackPanel x:Name="stackPreviews" />
65             </ScrollViewer>
66          </Border>
67          <Grid Grid.Column="2" Grid.Row="2">
68             <Grid.RowDefinitions>
69                <RowDefinition Height="100"/>
70                <RowDefinition/>
71                <RowDefinition Height="Auto"/>
72             </Grid.RowDefinitions>
73             <ScrollViewer x:Name="scrollViewCurrentImage" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" MinHeight="100" MinWidth="100" Background="#FF3E3E3E">
74                <Border x:Name="borderCurrentImage" BorderBrush="Transparent">
75                   <Canvas x:Name="canvasCurrentImage" Height="100" Width="100" />
76                </Border>
77             </ScrollViewer>
78             <Border Grid.Row="1" x:Name="imgLogos">
79                <Grid>
80                   <Grid.RowDefinitions>
81                      <RowDefinition Height="1*"/>
82                      <RowDefinition Height="Auto"/>
83                      <RowDefinition Height="Auto"/>
84                      <RowDefinition Height="1*"/>
85                   </Grid.RowDefinitions>
86                   <Image Grid.Row="1" Source="pack://application:,,,/Resources/chuv_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,0,0,10" />
87                   <Image Grid.Row="2" Source="pack://application:,,,/Resources/hes-so_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,10,0,0" />
88                </Grid>
89             </Border>
90             <ScrollViewer x:Name="scrollRBC" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" Grid.RowSpan="1"  Margin="3">
91                <StackPanel x:Name="stackRBC" Orientation="Horizontal" />
92             </ScrollViewer>
93             <Grid Grid.Row="2">
94                <Grid.ColumnDefinitions>
95                   <ColumnDefinition Width="1*"/>
96                   <ColumnDefinition Width="1*"/>
97                </Grid.ColumnDefinitions>
98                <TextBlock x:Name="txtImageInformation1" TextWrapping="Wrap" Margin="3" Grid.Column="0" />
99                <TextBlock x:Name="txtImageInformation2" TextWrapping="Wrap" Margin="3" Grid.Column="1" />
100             </Grid>
101          </Grid>
102       </Grid>
103    </DockPanel>
104 </Window>