<Window x:Class="Ereignisse.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:y="clr-namespace:Ereignisse"
    Name="mainWindow" Title="Ereignisse und Befehle" Height="267" Width="601"
    PreviewMouseDown="mainWindow_PreviewMouseDown" 
    ButtonBase.Click="mainWindow_Click" 
    >
    <DockPanel Name="dockPanel1" 
               PreviewMouseDown="dockPanel1_PreviewMouseDown"           
               ButtonBase.Click="dockPanel1_Click">
        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="_Datei">
                <MenuItem Header="_Neu" Command="New"/>
                <Separator />
                <MenuItem Header="_Beenden" Command="Close"/>
            </MenuItem>
        </Menu>
        <Grid Name="grid1" DockPanel.Dock="Bottom" 
              PreviewMouseDown="grid1_PreviewMouseDown"              
              ButtonBase.Click="grid1_Click">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Button Name="btnNew" Grid.Column="0" 
                    Command="New">_Neu</Button>
            <Button Name="btnShow" Grid.Column="1" 
                    PreviewMouseDown="btnShow_PreviewMouseDown"                     
                    Click="btnShow_Click"
                    Command="{x:Static y:MainWindow.ShowEvents}">_Ereignisse zeigen</Button>
        </Grid>
        <ScrollViewer Name="scrollViewer1">
            <TextBox Name="textBox1" TextWrapping="Wrap" AcceptsReturn="True">Hallo</TextBox>
        </ScrollViewer>
    </DockPanel>
</Window>
