<Window x:Class="TSA_Beadandó.paralelogramma"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PARALELOGRAMMA" Height="480" Width="640">
    <Grid>
        <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 paralelogramma 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 ></RowDefinition>
                            </Grid.RowDefinitions>
                            <Label Content="a" Grid.Column="0" Grid.Row="0"></Label>
                            <Label Content="ma" Grid.Column="0" Grid.Row="1"></Label>
                            <Label Content="b" Grid.Column="0" Grid.Row="2"></Label>
                            <Label Content="K" Grid.Column="0" Grid.Row="3"></Label>
                            <Label Content="T" Grid.Column="0" Grid.Row="4"></Label>
                            <TextBox Text="{Binding ElementName=slider_a_para, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_a_para" Grid.Column="1" Grid.Row="0"></TextBox>
                            <TextBox Text="{Binding ElementName=slider_ma_para, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_ma_para" Grid.Column="1" Grid.Row="1"></TextBox>
                            <TextBox Text="{Binding ElementName=slider_b_para, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Name="tb_b_para" Grid.Column="1" Grid.Row="2"></TextBox>
                            <Label Name="l_K_para" Grid.Column="1" Grid.Row="3"></Label>
                            <Label Name="l_T_para" Grid.Column="1" Grid.Row="4"></Label>
                            <Slider Name="slider_a_para" Grid.Column="2" Grid.Row="0" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True" ></Slider>
                            <Slider Name="slider_ma_para" Grid.Column="2" Grid.Row="1" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                            <Slider Name="slider_b_para" Grid.Column="2" Grid.Row="2" Minimum="0" Maximum="100" Value="0" IsSnapToTickEnabled="True"></Slider>
                            <Button Name="b_para" Content="Számol" Grid.Column="1" Grid.Row="5" Click="b_para_Click" HorizontalAlignment="Left" Width="100"></Button>
                        </Grid>
                        
                    </DockPanel>
                    <Image Source="kep/paralelogramma.jpg"  />
                </StackPanel>
            </DockPanel>
        </Grid>
    </Grid>
</Window>
