<ExampleWindows:PersonWindowIntermediate x:Class="Catel.Examples.Silverlight.UI.Windows.PersonWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Windows="clr-namespace:Catel.Windows;assembly=Catel.Silverlight"
xmlns:Converters="clr-namespace:Catel.Examples.Silverlight.UI.Data.Converters"
xmlns:Controls="clr-namespace:Catel.Windows.Controls;assembly=Catel.Silverlight"
xmlns:ExampleWindows="clr-namespace:Catel.Examples.Silverlight.UI.Windows"
Width="400" Height="300">
<!-- Resources -->
<Windows:DataWindow.Resources>
<!-- Converters -->
<Converters:GenderToIsSelectedConverter x:Key="GenderToIsSelectedConverter" />
</Windows:DataWindow.Resources>
<!-- Content -->
<Controls:StackGrid>
<!-- Row definitions -->
<Controls:StackGrid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Controls:StackGrid.RowDefinitions>
<!-- Column definitions -->
<Controls:StackGrid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Controls:StackGrid.ColumnDefinitions>
<!-- Gender -->
<TextBlock Text="Gender" />
<StackPanel Orientation="Horizontal" x:Name="genderStackPanel">
<RadioButton Content="Male" IsChecked="{Binding Gender, Mode=TwoWay, Converter={StaticResource GenderToIsSelectedConverter}, ConverterParameter=Male, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
<RadioButton Content="Female" IsChecked="{Binding Gender, Mode=TwoWay, Converter={StaticResource GenderToIsSelectedConverter}, ConverterParameter=Female, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
</StackPanel>
<!-- First name -->
<TextBlock Text="First name" />
<TextBox Text="{Binding FirstName, Mode=TwoWay, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
<!-- Middle name -->
<TextBlock Text="Middle name" />
<TextBox Text="{Binding MiddleName, Mode=TwoWay, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
<!-- Last name -->
<TextBlock Text="Last name" />
<TextBox Text="{Binding LastName, Mode=TwoWay, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
</Controls:StackGrid>
</ExampleWindows:PersonWindowIntermediate>