Add an about window.
[master-thesis.git] / Parasitemia / Parasitemia / GUI / ImageSourceSelection.xaml
1 <UserControl
2                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5       xmlns:fsxaml="clr-namespace:FsXaml;assembly=FsXaml.Wpf"
6       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
7       mc:Ignorable="d" d:DesignWidth="349.723" d:DesignHeight="118.911"
8                 >
9    <UserControl.Background>
10       <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlColorKey}}"/>
11    </UserControl.Background>
12    <Grid x:Name="gridMain">
13       <Grid.ColumnDefinitions>
14          <ColumnDefinition Width="100"/>
15          <ColumnDefinition/>
16       </Grid.ColumnDefinitions>
17       <Grid x:Name="gridImage" Grid.ColumnSpan="1" VerticalAlignment="Top">
18          <Image x:Name="imagePreview" />
19          <CheckBox x:Name="chkSelection" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3,3,0,0"/>
20          <Border HorizontalAlignment="Right" VerticalAlignment="Bottom" Background="#4C000000" Margin="0,0,3,3" CornerRadius="5" >
21             <TextBlock x:Name="txtImageNumber" Padding="2" Text="42" Foreground="White" />
22          </Border>
23          <Rectangle x:Name="viewport" Margin="24,30,71,26" Stroke="#BFFFFF00" RenderTransformOrigin="0.5,0.5" Visibility="Hidden"/>
24       </Grid>
25       <Grid Grid.Column="1">
26          <Grid.ColumnDefinitions>
27             <ColumnDefinition Width="Auto"/>
28             <ColumnDefinition/>
29          </Grid.ColumnDefinitions>
30          <Grid.RowDefinitions>
31             <RowDefinition Height="Auto"/>
32             <RowDefinition Height="Auto"/>
33             <RowDefinition Height="1*"/>
34          </Grid.RowDefinitions>
35          <Label Content="Last analysis" Grid.Column="0" Grid.Row="0" Margin="10,0,3,0" />
36          <Label Content="Resolution [PPI]" Grid.Column="0" Grid.Row="1" Margin="10,0,3,0" />
37          <Label x:Name="lblDateLastAnalysis" Grid.Column="1" Margin="3,0,3,0"/>
38          <Grid Grid.Column="1" Grid.Row="1">
39             <Grid.ColumnDefinitions>
40                <ColumnDefinition/>
41                <ColumnDefinition Width="Auto"/>
42             </Grid.ColumnDefinitions>
43             <TextBox x:Name="txtResolution" Margin="3" Text="" Grid.Column="0" />
44             <Button x:Name="butDefaultResolutions" Content="Defaults" Grid.Column="1" Margin="3">
45                <Button.ContextMenu>
46                   <ContextMenu>
47                      <MenuItem x:Name="menuZoom50X" Header="_230'000 PPI (50X)"  />
48                      <MenuItem x:Name="menuZoom100X" Header="_460'000 PPI (100X)" />
49                   </ContextMenu>
50                </Button.ContextMenu>
51                <Button.Style>
52                   <Style TargetType="{x:Type Button}">
53                      <Style.Triggers>
54                         <EventTrigger RoutedEvent="Click">
55                            <EventTrigger.Actions>
56                               <BeginStoryboard>
57                                  <Storyboard>
58                                     <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="ContextMenu.IsOpen">
59                                        <DiscreteBooleanKeyFrame KeyTime="0:0:0" Value="True"/>
60                                     </BooleanAnimationUsingKeyFrames>
61                                  </Storyboard>
62                               </BeginStoryboard>
63                            </EventTrigger.Actions>
64                         </EventTrigger>
65                      </Style.Triggers>
66                   </Style>
67                </Button.Style>
68             </Button>
69          </Grid>
70       </Grid>
71    </Grid>
72 </UserControl>