Use an absolute value for thickness and font size
[master-thesis.git] / Parasitemia / ParasitemiaUIControls / ImageSourcePreview.xaml
1 <UserControl
2     x:Class="ParasitemiaUIControls.ImageSourcePreview"
3     xmlns:local="clr-namespace:ParasitemiaUIControls"
4     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8     mc:Ignorable="d" d:DesignWidth="119.223" d:DesignHeight="84.911"
9 >
10     <Border x:Name="border" x:FieldModifier="public" ClipToBounds="True" BorderBrush="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}">
11         <Grid x:Name="grid">
12             <Grid.ContextMenu>
13                 <ContextMenu>
14                     <MenuItem x:Name="menuRemoveImage" x:FieldModifier="public" Header="_Remove image"  />
15                 </ContextMenu>
16             </Grid.ContextMenu>
17             <Image x:Name="imagePreview" x:FieldModifier="public" />
18             <Border HorizontalAlignment="Right" VerticalAlignment="Bottom" Background="#4C000000" Margin="0,0,3,3" CornerRadius="5" >
19                 <TextBlock x:Name="txtImageNumber" x:FieldModifier="public" Padding="2" Text="42" Foreground="White" />
20             </Border>
21             <Rectangle x:Name="viewport" x:FieldModifier="public" Margin="24,30,71,26" Stroke="#BFFFFF00" RenderTransformOrigin="0.5,0.5" Visibility="Hidden"/>
22         </Grid>
23     </Border>
24 </UserControl>