123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <Window x:Class="N3.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:N3"
- mc:Ignorable="d"
- Title="Калькулятор" Height="500" Width="450">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="2*"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Column="0" Grid.ColumnSpan="5">
- <StackPanel>
- <TextBlock Name="TBshow" Style="{StaticResource TBusually}"/>
- <TextBlock Name="TBanswer" FontSize="24" Style="{StaticResource TBusually}" Visibility="Collapsed" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0">
- <Button Click="OperationClick">√x</Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2">
- <Button Click="ActClick">C</Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="3">
- <Button Click="OperationClick">%</Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="4">
- <Button Click="OperationClick">/</Button>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <Button Click="OperationClick">x^2</Button>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="1">
- <Button Click="NumClick">7</Button>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="2">
- <Button Click="NumClick">8</Button>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="3">
- <Button Click="NumClick">9</Button>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="4">
- <Button Click="OperationClick">*</Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="0">
- <Button Click="OperationClick">log10(x)</Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1">
- <Button Click="NumClick">4</Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="2">
- <Button Click="NumClick">5</Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="3">
- <Button Click="NumClick">6</Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="4">
- <Button Click="OperationClick">-</Button>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="0">
- <Button Click="OperationClick">sin</Button>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="1">
- <Button Click="NumClick">1</Button>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="2">
- <Button Click="NumClick">2</Button>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="3">
- <Button Click="NumClick">3</Button>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="4">
- <Button Click="OperationClick">+</Button>
- </Grid>
- <Grid Grid.Row="5" Grid.Column="0">
- <Button Click="OperationClick">ctg</Button>
- </Grid>
- <Grid Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2">
- <Button Click="NumClick">0</Button>
- </Grid>
- <Grid Grid.Row="5" Grid.Column="3">
- <Button Click="ActClick">,</Button>
- </Grid>
- <Grid Grid.Row="5" Grid.Column="4">
- <Button Click="ActClick">=</Button>
- </Grid>
- </Grid>
- </Window>
|