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="PPICalculatorWindow" Height="200" Width="378.5" MinHeight="200" MinWidth="280" Title="About" Icon="pack://application:,,,/Resources/icon.ico">
8 <Grid.ColumnDefinitions>
9 <ColumnDefinition Width="Auto"/>
10 <ColumnDefinition Width="1*"/>
11 </Grid.ColumnDefinitions>
13 <RowDefinition Height="Auto" />
14 <RowDefinition Height="Auto" />
15 <RowDefinition Height="Auto" />
16 <RowDefinition Height="20" />
17 <RowDefinition Height="Auto" />
18 <RowDefinition Height="1*" />
19 </Grid.RowDefinitions>
20 <Label Content="Sensor size" Grid.Row="0" Grid.Column="0" />
21 <ComboBox x:Name="cmbSensorSize" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" />
23 <Label Content="Sensor resolution [Megapixel]" Grid.Row="1" Grid.Column="0" />
24 <TextBox x:Name="txtSensorResolution" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" />
26 <Label Content="Zoom" Grid.Row="2" Grid.Column="0" />
27 <TextBox x:Name="txtZoom" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" />
29 <Label Content="Image resolution [PPI]" Grid.Row="4" Grid.Column="0" />
30 <TextBox x:Name="txtImageResolution" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" IsReadOnly="True" />
32 <Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="2">
33 <Grid.ColumnDefinitions>
34 <ColumnDefinition Width="1*"/>
35 <ColumnDefinition Width="Auto"/>
36 </Grid.ColumnDefinitions>
37 <Button x:Name="butCancel" Content="Cancel" HorizontalAlignment="Right" Margin="3" VerticalAlignment="Bottom" Width="75" Height="20" Grid.Column="0" />
38 <Button x:Name="butOK" Content="OK" HorizontalAlignment="Right" Margin="3" VerticalAlignment="Bottom" Width="75" Height="20" Grid.Column="1" />