programusy

Untitled

Apr 13th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. <Window x:Class="WpfApp3.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp3"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition></ColumnDefinition>
  12. <ColumnDefinition>
  13. </ColumnDefinition>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition></RowDefinition>
  17. </Grid.RowDefinitions>
  18.  
  19. <Canvas Grid.Row="0" Grid.Column="0"></Canvas>
  20. <Grid Grid.Row="0" Grid.Column="1">
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition></ColumnDefinition>
  23. <ColumnDefinition></ColumnDefinition>
  24. <ColumnDefinition></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. <ColumnDefinition></ColumnDefinition>
  27. <ColumnDefinition></ColumnDefinition>
  28. </Grid.ColumnDefinitions>
  29. <Grid.RowDefinitions>
  30. <RowDefinition></RowDefinition>
  31. <RowDefinition></RowDefinition>
  32. <RowDefinition></RowDefinition>
  33. </Grid.RowDefinitions>
  34.  
  35. <Label Height="40" FontSize="20" Grid.Row="0" Grid.Column="0">F(x) = </Label>
  36. <TextBox x:Name="paramter_a" Grid.Row="0" Grid.Column="1" Height="40" FontSize="20"></TextBox>
  37. <Label Height="40" FontSize="20" Grid.Row="0" Grid.Column="2">x^2 +</Label>
  38. <TextBox x:Name="paramter_b" Grid.Row="0" Grid.Column="3" Height="40" FontSize="20"></TextBox>
  39. <Label Height="40" FontSize="20" Grid.Row="0" Grid.Column="4">x +</Label>
  40. <TextBox x:Name="paramter_c" Grid.Row="0" Grid.Column="5" Height="40" FontSize="20"></TextBox>
  41.  
  42. <Label Grid.Row="1" Grid.Column="1" Height="40" FontSize="20">x1 = </Label>
  43. <Label Grid.Row="1" Grid.Column="2" Height="40" FontSize="20" x:Name="out_x1"></Label>
  44. <Label Grid.Row="1" Grid.Column="3" Height="40" FontSize="20">x2 =</Label>
  45. <Label Grid.Row="1" Grid.Column="4" Height="40" FontSize="20" x:Name="out_x2"></Label>
  46.  
  47. <Button x:Name="oblicz" Grid.Row="2" Grid.Column="5" Click="oblicz_Click">Oblicz</Button>
  48.  
  49. <Label x:Name="komentarz" Grid.Row="2" Grid.ColumnSpan="5" FontSize="16" VerticalAlignment="Center">OBLICZANIE FUNKCJI KWADRATOWEJ</Label>
  50. </Grid>
  51. </Grid>
  52. </Window>
  53.  
Advertisement
Add Comment
Please, Sign In to add comment