Головна‎ > ‎C# WPF‎ > ‎

Калькулятор XAML

<Grid Background="White">

   <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
   </Grid.RowDefinitions>

   <Grid.ColumnDefinitions>
      <ColumnDefinition />
      <ColumnDefinition />
      <ColumnDefinition />
      <ColumnDefinition />
   </Grid.ColumnDefinitions>

   <TextBox Grid.Column="0" Grid.ColumnSpan="4" />  //?
   <Button Grid.Column="0" Grid.Row="1">1</Button>
   <Button Grid.Column="1" Grid.Row="1">2</Button>
   <Button Grid.Column="2" Grid.Row="1">3</Button>
   <Button Grid.Column="3" Grid.Row="1">4</Button>
   <Button Grid.Column="0" Grid.Row="2">5</Button>
   <Button Grid.Column="1" Grid.Row="2">6</Button>
   <Button Grid.Column="2" Grid.Row="2">7</Button>
   <Button Grid.Column="3" Grid.Row="2">8</Button>
   <Button Grid.Column="0" Grid.Row="3">9</Button>
   <Button Grid.Column="1" Grid.Row="3">0</Button>
   <Button Grid.Column="2" Grid.Row="3">+</Button>
   <Button Grid.Column="3" Grid.Row="3">-</Button>
   <Button Grid.Column="0" Grid.Row="4">*</Button>
   <Button Grid.Column="1" Grid.Row="4">/</Button>
   <Button Grid.Column="2" Grid.Row="4">=</Button>
   <Button Grid.Column="3" Grid.Row="4">CLEAR</Button>

</Grid>