You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
2.0 KiB

<Window x:Class="ListBoxLinqBindingSample.SubWindow.SubWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ListBoxLinqBindingSample.SubWindow"
mc:Ignorable="d"
Title="SubWindow" Height="300" Width="300">
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<TextBlock Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="20" FontWeight="Bold"
Text="Position Registration"/>
<TextBlock Grid.Row="1" Margin="10" VerticalAlignment="Center"
Text="Duty name: "/>
<TextBox x:Name="tbxDutyName" Grid.Column="1" Grid.Row="1" Margin="5" Grid.ColumnSpan="2" VerticalAlignment="Center"/>
<TextBlock Grid.Row="2" Margin="10" VerticalAlignment="Center"
Text="Duty type: "/>
<RadioButton x:Name="rbInside" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center"
Content="Inside"/>
<RadioButton x:Name="rbOutside" Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center"
Content="Outside"/>
<Button x:Name="btnSave" Grid.Column="1" Grid.Row="3" Height="22" Width="80" VerticalAlignment="Center" HorizontalAlignment="Center"
Content="Save"
Click="btnSave_Click"/>
</Grid>
</Window>