000da4ef31477f2bb1f868175a1fc4fdf7c025e7
[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="menuExportResults" Header="E_xport Results As Text..." InputGestureText="Ctrl+E" />
16             <Separator />
17             <MenuItem x:Name="menuExit" Header="_Exit" />
18          </MenuItem>
19          <MenuItem Header="_Images">
20             <MenuItem x:Name="menuAddSourceImage" Header="_Add a Source Image" />
21          </MenuItem>
22          <MenuItem x:Name="menuAnalysis" Header="_Analysis">
23             <MenuItem x:Name="menuStartAnalysis" Header="_Show Analysis Window" />
24          </MenuItem>
25          <MenuItem x:Name="menuView" Header="_View">
26             <MenuItem x:Name="menuHightlightRBC" Header="_Highlight All Erytrocytes" IsCheckable="True" />
27          </MenuItem>
28          <MenuItem x:Name="menuHelp" Header="_Help">
29             <MenuItem x:Name="menuAbout" Header="_About" />
30          </MenuItem>
31       </Menu>
32       <StatusBar DockPanel.Dock="Bottom" >
33          <StatusBarItem>
34             <TextBlock Name="txtDocumentStatus" />
35          </StatusBarItem>
36          <StatusBarItem>
37             <TextBlock Name="txtMessageStatus" />
38          </StatusBarItem>
39       </StatusBar>
40       <Grid x:Name="gridMain">
41          <Grid.RowDefinitions>
42             <RowDefinition Height="Auto"/>
43             <RowDefinition/>
44          </Grid.RowDefinitions>
45          <Grid.ColumnDefinitions>
46             <ColumnDefinition Width="180" />
47             <ColumnDefinition/>
48          </Grid.ColumnDefinitions>
49          <Grid x:Name="gridGlobalInfo" Grid.ColumnSpan="2" Margin="3,3,3,3" >
50             <Grid.ColumnDefinitions>
51                <ColumnDefinition Width="101"/>
52                <ColumnDefinition Width="21"/>
53                <ColumnDefinition/>
54             </Grid.ColumnDefinitions>
55             <Grid.RowDefinitions>
56                <RowDefinition Height="Auto"/>
57                <RowDefinition Height="Auto"/>
58             </Grid.RowDefinitions>
59             <Label x:Name="lblPatient" Margin="10,0,3,0 " Content="Patient ID" Grid.ColumnSpan="2"/>
60             <Label x:Name="lblGlobalParasitemia" Margin="10,0,3,0" Content="Global parasitemia" Grid.Row="1" Grid.ColumnSpan="2" />
61             <TextBox x:Name="txtPatient" Grid.Column="2" Margin="3,4,10,4" TextWrapping="Wrap" VerticalAlignment="Center" />
62             <Border BorderThickness="1" VerticalAlignment="Center" Margin="3,4,10,4" BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" Grid.Column="2" Grid.Row="1" >
63                <TextBlock x:Name="txtGlobalParasitemia" Margin="1" TextWrapping="Wrap"  />
64             </Border>
65          </Grid>
66          <Border BorderBrush="Black" BorderThickness="0"  Margin="3" Grid.Row="1" >
67             <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
68                <StackPanel x:Name="stackPreviews" />
69             </ScrollViewer>
70          </Border>
71          <Grid Grid.Column="2" Grid.Row="2">
72             <Grid.RowDefinitions>
73                <RowDefinition Height="100"/>
74                <RowDefinition/>
75                <RowDefinition Height="Auto"/>
76             </Grid.RowDefinitions>
77             <ScrollViewer x:Name="scrollViewCurrentImage" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" MinHeight="100" MinWidth="100" Background="#FF3E3E3E">
78                <Border x:Name="borderCurrentImage" BorderBrush="Transparent">
79                   <Canvas x:Name="canvasCurrentImage" Height="100" Width="100" />
80                </Border>
81             </ScrollViewer>
82             <Border Grid.Row="1" x:Name="imgLogos">
83                <Grid>
84                   <Grid.RowDefinitions>
85                      <RowDefinition Height="1*"/>
86                      <RowDefinition Height="Auto"/>
87                      <RowDefinition Height="Auto"/>
88                      <RowDefinition Height="1*"/>
89                   </Grid.RowDefinitions>
90                   <Image Grid.Row="1" Source="pack://application:,,,/Resources/chuv_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,0,0,10" />
91                   <Image Grid.Row="2" Source="pack://application:,,,/Resources/hes-so_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,10,0,0" />
92                </Grid>
93             </Border>
94             <ScrollViewer x:Name="scrollRBC" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" Grid.RowSpan="1"  Margin="3">
95                <StackPanel x:Name="stackRBC" Orientation="Horizontal" />
96             </ScrollViewer>
97             <Grid x:Name="gridImageInformation" Grid.Row="2">
98                <Grid.ColumnDefinitions>
99                   <ColumnDefinition Width="1*"/>
100                   <ColumnDefinition Width="1*"/>
101                </Grid.ColumnDefinitions>
102                <Grid.RowDefinitions>
103                   <RowDefinition Height="Auto" />
104                   <RowDefinition Height="1*" />
105                </Grid.RowDefinitions>
106                <Grid Grid.ColumnSpan="2" Grid.Row="0" Margin="0,3,3,0">
107                   <Grid.ColumnDefinitions>
108                      <ColumnDefinition Width="Auto"/>
109                      <ColumnDefinition Width="1*"/>
110                   </Grid.ColumnDefinitions>
111                   <Label Content="Image name" Grid.Column="0"></Label>
112                   <TextBox x:Name="txtImageName" Grid.Column="1" VerticalAlignment="Center"> </TextBox>
113                </Grid>
114                <TextBlock x:Name="txtImageInformation1" TextWrapping="Wrap" Margin="3" Grid.Column="0" Grid.Row="1" />
115                <TextBlock x:Name="txtImageInformation2" TextWrapping="Wrap" Margin="3" Grid.Column="1" Grid.Row="1" />
116             </Grid>
117          </Grid>
118       </Grid>
119    </DockPanel>
120 </Window>