<Window x:Class="Ressourcen.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Ressourcen" Height="200" Width="450" Background="BlueViolet">
    
    <Window.Resources>
        <SolidColorBrush x:Key="redBrush" Color="Red" />
        <SolidColorBrush x:Key="whiteBrush" Color="White" />
    </Window.Resources>
    
    <Grid>
        <Button Name="button1" Foreground="{StaticResource redBrush}" Click="button1_Click" Margin="0,0,0,10" HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="23" Width="75">Beenden</Button>
        <Label Name="label1" Foreground="{StaticResource whiteBrush}" FontSize="24" Margin="0,30,0,0" VerticalAlignment="Top" HorizontalAlignment="Center" HorizontalContentAlignment="Center">Hallo Welt!</Label>
    </Grid>
</Window>
