MainWindow.xaml 1.1 KB

123456789101112131415161718
  1. <Window x:Class="Calculator.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:Calculator"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800">
  9. <Grid Background="Pink">
  10. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <TextBox Background="LightBlue" Name="x1" Width="100" Margin="0,0,10,0">1</TextBox>
  12. <ComboBox SelectionChanged="Fun_SelectionChanged" Name="Fun" Width="100" Margin="0,0,10,0"></ComboBox>
  13. <TextBox Background="LightBlue" Name="x2" Width="100" Margin="0,0,10,0">2</TextBox>
  14. <Button Click="Result" Width="100" Margin="0,0,10,0">=</Button>
  15. <TextBlock Background="LightBlue" Name="Res" Width="100"></TextBlock>
  16. </StackPanel>
  17. </Grid>
  18. </Window>