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"
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" />
15 <MenuItem x:Name="menuExit" Header="_Exit" />
17 <MenuItem Header="_Images">
18 <MenuItem x:Name="menuAddSourceImage" Header="_Add a source image" />
20 <MenuItem x:Name="menuAnalysis" Header="_Analysis">
21 <MenuItem x:Name="menuStartAnalysis" Header="_Show analysis window" />
23 <MenuItem x:Name="menuView" Header="_View">
24 <MenuItem x:Name="menuHightlightRBC" Header="_Highlight all erytrocytes" IsCheckable="True" />
26 <MenuItem x:Name="menuHelp" Header="_Help">
27 <MenuItem x:Name="menuAbout" Header="_About" />
30 <StatusBar DockPanel.Dock="Bottom" >
32 <TextBlock Name="txtDocumentStatus" />
35 <TextBlock Name="txtMessageStatus" />
38 <Grid x:Name="gridMain">
40 <RowDefinition Height="Auto"/>
42 </Grid.RowDefinitions>
43 <Grid.ColumnDefinitions>
44 <ColumnDefinition Width="180" />
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"/>
52 </Grid.ColumnDefinitions>
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" />
62 <Border BorderBrush="Black" BorderThickness="0" Margin="3" Grid.Row="1" >
63 <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
64 <StackPanel x:Name="stackPreviews" />
67 <Grid Grid.Column="2" Grid.Row="2">
69 <RowDefinition Height="100"/>
71 <RowDefinition Height="Auto"/>
72 </Grid.RowDefinitions>
73 <ScrollViewer x:Name="scrollViewCurrentImage" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" Background="#FF535353" MinHeight="100" MinWidth="100">
74 <Border x:Name="borderCurrentImage" BorderBrush="Transparent">
75 <Canvas x:Name="canvasCurrentImage" Height="100" Width="100" />
78 <Border Grid.Row="1" x:Name="imgLogos">
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" />
90 <ScrollViewer x:Name="scrollRBC" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" Grid.RowSpan="1" Margin="3">
91 <StackPanel x:Name="stackRBC" Orientation="Horizontal" />
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" />