<Window x:Class="Windowanwendung.Dialog1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Optionen-Dialog" Height="351" Width="385" ResizeMode="NoResize">
    <Canvas>
        <GroupBox Header="Vordergrundfarbe" Height="101" Margin="32,39,0,0" Name="groupBox1" Width="256" Canvas.Left="-20" Canvas.Top="-9">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <RadioButton Content="Schwarz" Grid.Column="1"  Grid.Row="0" Name="radioButton1" Margin="5" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
                <RadioButton Content="Weiß" Grid.Column="1" Grid.Row="1" Name="radioButton2" Margin="5" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
                <RadioButton Content="Rot" Grid.Column="1" Grid.Row="2" Name="radioButton3" Margin="5" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Hintergrundfarbe" Height="101" Name="groupBox2" Width="256" Canvas.Left="12" Canvas.Top="147">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <RadioButton Content="Schwarz" Grid.Column="1" Grid.Row="0" Margin="5" Name="radioButton4" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
                <RadioButton Content="Weiß" Grid.Column="1" Grid.Row="1" Margin="5" Name="radioButton5" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
                <RadioButton Content="Rot" Grid.Column="1" Grid.Row="2" Margin="5" Name="radioButton6" VerticalAlignment="Center" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Page, AncestorLevel=1}, Path=Foreground}" />
            </Grid>
        </GroupBox>
        <Button Canvas.Left="173" Canvas.Top="277" Content="OK" Height="23" Name="btnOK" Width="75" Click="btnOk_Click" IsDefault="True" />
        <Button Canvas.Left="265" Canvas.Top="277" Content="Abbrechen" Height="23" Name="btnCancel" Width="75" IsCancel="True" Click="btnCancel_Click" />
    </Canvas>
</Window>
