<Window x:Class="PropertyValueInheritance.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         Title="PropertyValueInheritance" Height="219" Width="352"  Background="Yellow"     FontSize="15" FontWeight="Bold">
    <DockPanel 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>
</Window>
