Advertisement
programusy

Untitled

Apr 13th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | Source Code | 0 0
  1. <Window x:Class="DeltaAndGraphCalculator.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Delta and Graph Calculator" Height="350" Width="525">
  5. <Grid>
  6. <Grid.RowDefinitions>
  7. <RowDefinition Height="Auto"/>
  8. <RowDefinition Height="Auto"/>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="Auto"/>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="*"/>
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="Auto"/>
  16. <ColumnDefinition Width="*"/>
  17. </Grid.ColumnDefinitions>
  18.  
  19. <Label Grid.Row="0" Grid.Column="0">a:</Label>
  20. <TextBox Grid.Row="0" Grid.Column="1" x:Name="AParameterTextBox"/>
  21.  
  22. <Label Grid.Row="1" Grid.Column="0">b:</Label>
  23. <TextBox Grid.Row="1" Grid.Column="1" x:Name="BParameterTextBox"/>
  24.  
  25. <Label Grid.Row="2" Grid.Column="0">c:</Label>
  26. <TextBox Grid.Row="2" Grid.Column="1" x:Name="CParameterTextBox"/>
  27.  
  28. <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Content="Oblicz" Click="CalculateDeltaAndDrawGraphButton_Click"/>
  29.  
  30. <StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal">
  31. <TextBlock Text="Delta: "/>
  32. <TextBlock x:Name="DeltaValueTextBlock" Text=""/>
  33. </StackPanel>
  34.  
  35. <StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal">
  36. <TextBlock Text="x1: "/>
  37. <TextBlock x:Name="X1ValueTextBlock" Text=""/>
  38. <TextBlock Text="x2: "/>
  39. <TextBlock x:Name="X2ValueTextBlock" Text=""/>
  40. </StackPanel>
  41.  
  42. <Canvas Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" x:Name="GraphCanvas" Background="White"/>
  43. </Grid>
  44. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement