<Window x:Class="TSA_Beadandó.trapez"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="TRAPÉZ" Height="480" Width="640">
    <Grid>
        <DockPanel LastChildFill="True">
            <StatusBar  DockPanel.Dock="Bottom">Programozási környezetek beadandó feladat - Tóthné Sümegi Adrienn(DQJ8IG)</StatusBar>
            <StackPanel DockPanel.Dock="Top" Margin="10">
                <Label>Az adatok megadásával a trapéz kerülete és területe számítható ki.</Label>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <DockPanel>
                    <Grid>

                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="50"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                            <ColumnDefinition ></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition Height="30"></RowDefinition>
                            <RowDefinition ></RowDefinition>
                        </Grid.RowDefinitions>
                        <Label Content="a" Grid.Column="0" Grid.Row="0"></Label>
                        <Label Content="b" Grid.Column="0" Grid.Row="1"></Label>
                        <Label Content="c" Grid.Column="0" Grid.Row="2"></Label>
                        <Label Content="d" Grid.Column="0" Grid.Row="3"></Label>
                        <Label Content="K" Grid.Column="0" Grid.Row="4"></Label>
                        <Label Content="T" Grid.Column="0" Grid.Row="5"></Label>
                        <TextBox Text="{Binding ElementName=slider_a_trap, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_a_trap" Grid.Column="1" Grid.Row="0"></TextBox>
                        <TextBox Text="{Binding ElementName=slider_b_trap, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_b_trap" Grid.Column="1" Grid.Row="1"></TextBox>
                        <TextBox Text="{Binding ElementName=slider_c_trap, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_c_trap" Grid.Column="1" Grid.Row="2"></TextBox>
                        <TextBox Text="{Binding ElementName=slider_d_trap, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_d_trap" Grid.Column="1" Grid.Row="3"></TextBox>
                        <Label Name="l_K_trap" Grid.Column="1" Grid.Row="4"></Label>
                        <Label Name="l_T_trap" Grid.Column="1" Grid.Row="5"></Label>
                        <Slider Name="slider_a_trap" Grid.Column="2" Grid.Row="0" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                        <Slider Name="slider_b_trap" Grid.Column="2" Grid.Row="1" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                        <Slider Name="slider_c_trap" Grid.Column="2" Grid.Row="2" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                        <Slider Name="slider_d_trap" Grid.Column="2" Grid.Row="3" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                        <Button Name="b_trap" Content="Számol" Grid.Column="1" Grid.Row="6" Click="b_trap_Click"></Button>
                    </Grid>
                  
                </DockPanel>
                <Image Source="kep/trapez.jpg" Stretch="Uniform" />
            </StackPanel>
        </DockPanel>
    </Grid>
</Window>
