2 x:Class="ParasitemiaUIControls.PPICalculatorWindow"
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"
9 Height="200" Width="378.5" MinHeight="200" MinWidth="280" Title="PPI Calculator" Icon="/ParasitemiaUIControls;component/Resources/icon.ico"
12 <Grid.ColumnDefinitions>
13 <ColumnDefinition Width="Auto"/>
14 <ColumnDefinition Width="1*"/>
15 </Grid.ColumnDefinitions>
17 <RowDefinition Height="Auto" />
18 <RowDefinition Height="Auto" />
19 <RowDefinition Height="Auto" />
20 <RowDefinition Height="20" />
21 <RowDefinition Height="Auto" />
22 <RowDefinition Height="1*" />
23 </Grid.RowDefinitions>
24 <Label Content="Sensor size" Grid.Row="0" Grid.Column="0" />
25 <ComboBox x:Name="cmbSensorSize" x:FieldModifier="public" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" />
27 <Label Content="Sensor resolution [Megapixel]" Grid.Row="1" Grid.Column="0" />
28 <TextBox x:Name="txtSensorResolution" x:FieldModifier="public" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" />
30 <Label Content="Zoom" Grid.Row="2" Grid.Column="0" />
31 <TextBox x:Name="txtZoom" Grid.Row="2" x:FieldModifier="public" Grid.Column="1" VerticalAlignment="Center" />
33 <Label Content="Image resolution [PPI]" Grid.Row="4" Grid.Column="0" />
34 <TextBox x:Name="txtImageResolution" x:FieldModifier="public" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" IsReadOnly="True" />
36 <Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="2">
37 <Grid.ColumnDefinitions>
38 <ColumnDefinition Width="1*"/>
39 <ColumnDefinition Width="Auto"/>
40 </Grid.ColumnDefinitions>
41 <Button x:Name="butCancel" x:FieldModifier="public" Content="Cancel" HorizontalAlignment="Right" Margin="3" VerticalAlignment="Bottom" Width="75" Height="20" Grid.Column="0" />
42 <Button x:Name="butOK" x:FieldModifier="public" Content="OK" HorizontalAlignment="Right" Margin="3" VerticalAlignment="Bottom" Width="75" Height="20" Grid.Column="1" />