<Window x:Class="RoutedEventsExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="286" Width="612"   FontSize="15" FontWeight="Bold"
		Title="Routed events"
        MouseLeftButtonDown="RoutedEventExample_MouseLeftButtonDown">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <GroupBox  Margin="5" Header="Panel do generacji zdarzeń">
            <DockPanel Background="Yellow" FlowDirection="RightToLeft" Name="element1" >
                <StatusBar DockPanel.Dock="Bottom" Name="element1_1" >
                    <Label>Pasek statusu dziedziczy tylko wartość FlowDirection</Label>
                    <Button>OK</Button>
                </StatusBar>
                <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" HorizontalAlignment="Center" Name="element1_2">
                    <Button>OK1</Button>
                    <Button>OK2</Button>
                    <Button>OK3</Button>
                    <Button>OK4</Button>
                    <Button>OK5</Button>
                    <Button>OK6</Button>
                    <Button>OK7</Button>
                    <Button>OK8</Button>
                    <Button Background="Red">OK9</Button>
                </StackPanel>
                <DockPanel  Name="element1_3">
                    <TextBlock>Wartość Background jest dziedziczona</TextBlock>
                    <TextBlock Background="LightSeaGreen">Inne tło</TextBlock>
                </DockPanel>
            </DockPanel>

        </GroupBox>
        <GroupBox Grid.Column="1" Margin="5" Header="Drzewo elementów">
            <ScrollViewer>
            <TextBlock  Margin="2" x:Name="textBlock" FontSize="8" FontWeight="Normal" />
            </ScrollViewer>
        </GroupBox>
    </Grid>
</Window>
