<Window x:Class="KoloryWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:KoloryWPF"
        mc:Ignorable="d"
        xmlns:vm="clr-namespace:KoloryWPF.ModelWidoku"
        Title="Kolory WPF" Height="480" Width="640" 
        KeyDown="Window_KeyDown" Closed="Window_Closed">
    <Window.Resources>
        <vm:EdycjaKoloru3 x:Key="edycjaKoloru" />
    </Window.Resources>
    <Grid DataContext="{StaticResource edycjaKoloru}">
        <Rectangle x:Name="rectangle" Margin="10,10,10,91.4" Stroke="Black">
            <Rectangle.Fill>
                <SolidColorBrush Color="{Binding Path=Color, Mode=OneWay}" />
            </Rectangle.Fill>
        </Rectangle>
        <Slider x:Name="sliderR" Margin="10,0,10.4,64.4" Height="22" VerticalAlignment="Bottom" 
                Maximum="255" Value="{Binding Path=Kolor.R, Mode=TwoWay}" />
        <Slider x:Name="sliderG" Margin="10,0,10.4,37.4" Height="22" VerticalAlignment="Bottom" 
                Maximum="255" Value="{Binding Path=Kolor.G, Mode=TwoWay}" />
        <Slider x:Name="sliderB" Margin="10,0,10.4,10.4" Height="22" VerticalAlignment="Bottom" 
                Maximum="255" Value="{Binding Path=Kolor.B, Mode=TwoWay}" />
    </Grid>
</Window>
