MainWindow.xaml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="LR4.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:LR4"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800">
  9. <Grid Background="AliceBlue">
  10. <StackPanel>
  11. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,50,0,0">
  12. <GroupBox Header="Число А" Width="145" Margin="5">
  13. <TextBox Foreground="#808080" Background="Beige" Name="x1" >1</TextBox>
  14. </GroupBox>
  15. <GroupBox Header="Число Б" Width="145" Margin="5">
  16. <TextBox Foreground="#808080" Background="Beige" Name="x2" >1</TextBox>
  17. </GroupBox>
  18. </StackPanel>
  19. <StackPanel>
  20. <GroupBox Header="Выберите нужную функцию" Width="300" >
  21. <ComboBox Foreground="#808080" SelectionChanged="Fun_SelectionChanged" Name="Fun" Height="20"></ComboBox>
  22. </GroupBox>
  23. <Border Margin="5" BorderThickness="1" CornerRadius="3" BorderBrush="#bababa" Background="Beige" Width="299" Height="20">
  24. <Button Background="#0000" BorderBrush="#0000" Foreground="#808080" Content="Вычислить" Click="Result" ></Button>
  25. </Border>
  26. <GroupBox Header="Результат" Width="300">
  27. <TextBlock Foreground="#808080" Background="Beige" Name="result"></TextBlock>
  28. </GroupBox>
  29. </StackPanel>
  30. </StackPanel>
  31. </Grid>
  32. </Window>