Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="DeltaAndGraphCalculator.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Delta and Graph Calculator" Height="350" Width="525">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="0">a:</Label>
- <TextBox Grid.Row="0" Grid.Column="1" x:Name="AParameterTextBox"/>
- <Label Grid.Row="1" Grid.Column="0">b:</Label>
- <TextBox Grid.Row="1" Grid.Column="1" x:Name="BParameterTextBox"/>
- <Label Grid.Row="2" Grid.Column="0">c:</Label>
- <TextBox Grid.Row="2" Grid.Column="1" x:Name="CParameterTextBox"/>
- <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Content="Oblicz" Click="CalculateDeltaAndDrawGraphButton_Click"/>
- <StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal">
- <TextBlock Text="Delta: "/>
- <TextBlock x:Name="DeltaValueTextBlock" Text=""/>
- </StackPanel>
- <StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal">
- <TextBlock Text="x1: "/>
- <TextBlock x:Name="X1ValueTextBlock" Text=""/>
- <TextBlock Text="x2: "/>
- <TextBlock x:Name="X2ValueTextBlock" Text=""/>
- </StackPanel>
- <Canvas Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" x:Name="GraphCanvas" Background="White"/>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement