<Page
    x:Class="DataPassingAndReturning.DialogPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DataPassingAndReturning"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <StackPanel>
            <TextBlock Text="Okno koloru"
                    FontSize="48"
                    HorizontalAlignment="Center"
                    Margin="48" />

            <StackPanel Name="radioStack"
                    HorizontalAlignment="Center" 
                    Margin="48">
                <RadioButton Content="Czerwony" Margin="12">
                    <RadioButton.Tag>
                        <Color>Red</Color>
                    </RadioButton.Tag>
                </RadioButton>

                <RadioButton Content="Zielony" Margin="12">
                    <RadioButton.Tag>
                        <Color>Green</Color>
                    </RadioButton.Tag>
                </RadioButton>

                <RadioButton Content="Niebieski" Margin="12">
                    <RadioButton.Tag>
                        <Color>Blue</Color>
                    </RadioButton.Tag>
                </RadioButton>
            </StackPanel>

            <Button Content="Gotowe"
                HorizontalAlignment="Center"
                Margin="48"
                Click="OnReturnButtonClick" />
        </StackPanel>
    </Grid>
</Page>