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="menuExportResults" Header="E_xport Results As Text..." InputGestureText="Ctrl+E" />
17 <MenuItem x:Name="menuExit" Header="_Exit" />
19 <MenuItem Header="_Images">
20 <MenuItem x:Name="menuAddSourceImage" Header="_Add a Source Image" />
22 <MenuItem x:Name="menuAnalysis" Header="_Analysis">
23 <MenuItem x:Name="menuStartAnalysis" Header="_Show Analysis Window" />
25 <MenuItem x:Name="menuView" Header="_View">
26 <MenuItem x:Name="menuHightlightRBC" Header="_Highlight All Erythrocytes" IsCheckable="True" />
28 <MenuItem x:Name="menuHelp" Header="_Help">
29 <MenuItem x:Name="menuAbout" Header="_About" />
32 <StatusBar DockPanel.Dock="Bottom" >
34 <TextBlock Name="txtDocumentStatus" />
37 <TextBlock Name="txtMessageStatus" />
40 <Grid x:Name="gridMain">
42 <RowDefinition Height="Auto"/>
44 </Grid.RowDefinitions>
45 <Grid.ColumnDefinitions>
46 <ColumnDefinition Width="180" />
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"/>
54 </Grid.ColumnDefinitions>
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" />
66 <Border BorderBrush="Black" BorderThickness="0" Margin="3" Grid.Row="1" >
67 <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
68 <StackPanel x:Name="stackPreviews" />
71 <Grid Grid.Column="2" Grid.Row="2">
73 <RowDefinition Height="100"/>
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" />
82 <Border Grid.Row="1" x:Name="imgLogos">
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" />
94 <ScrollViewer x:Name="scrollRBC" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" Grid.RowSpan="1" Margin="3">
95 <StackPanel x:Name="stackRBC" Orientation="Horizontal" />
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>
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" />