<Window x:Class="GraphDrawer.EdgeCreateWindow"
        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"
        mc:Ignorable="d"
        xmlns:wpfTool="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
        Title="Create New Edge" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Height="200" Width="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Вес ребра" FontSize="18" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Left"/>
            <Slider x:Name="weightSlider" Margin="5,5,0,0" VerticalAlignment="Center" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"  Width="200" Minimum="0" Maximum="30" SmallChange="1"/>
            <TextBox Width="30" VerticalAlignment="Center" FontSize="18" BorderThickness="1" BorderBrush="Black" x:Name="currentWeightBox" Text="{Binding ElementName=weightSlider, Path=Value}" TextAlignment="Center" IsReadOnly="True"/>
        </StackPanel>
        <TextBlock Grid.Row="1" FontSize="18" Margin="10" VerticalAlignment="Center" HorizontalAlignment="Left" Text="Цвет:"/>
        <wpfTool:ColorPicker SelectedColor="Black" Height="22" x:Name="colorCanvas" Width="230" Background="White" BorderThickness="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="60,0,0,0" Grid.Row="1" HeaderBackground="White" TabBackground="White" BorderBrush="White">
            <wpfTool:ColorPicker.DropDownBackground>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="#FFF0F0F0" Offset="0"/>
                    <GradientStop Color="White" Offset="1"/>
                </LinearGradientBrush>
            </wpfTool:ColorPicker.DropDownBackground>
        </wpfTool:ColorPicker>
        <UniformGrid Columns="2" Grid.Row="2">
            <Button x:Name="focusedBtn" Margin="20,10" Background="#FF4FCFFF" Content="Направленную" Click="FocusedBtn_Click"/>
            <Button x:Name="unfocusedBtn" Margin="20,10" Background="#FF4FCFFF" Content="Ненаправленную" Click="UnfocusedBtn_Click"/>
        </UniformGrid>
    </Grid>
</Window>
