/
n1kolas
/
AdamusCleanCode
Обзор
Документация
Войти
/
n1kolas
/
AdamusCleanCode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
codeCleanup
WpfApp2/WindowCalc.xaml
46 строк
3 KB
Kharchenko Nikolai
fixed some code
14 окт 2025, 11:09
14 окт 2025, 11:09
11fdff1
Код
Авторство
О чём код?
<Window x:Class="WpfApp2.WindowCalc" 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:WpfApp2" mc:Ignorable="d" Title="WindowCalc" Height="345" Width="310"> <Grid Background="Yellow"> <TextBlock x:Name="Display" TextAlignment="Center" VerticalAlignment="Center" Width="300" Height="60" "1,1,1,243" ></TextBlock> <Canvas Width="300" Height="200" "0,4,2,100"> <StackPanel Canvas.Top="59" Canvas.Left="1"> <StackPanel Orientation="Horizontal"> <Button Background="White" Click="ClearBtn_Click" Width="75" FontSize="30">AC</Button> <Button Background="White" Click="DeleteBtn_Click" Width="75" FontSize="33">del</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">%</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">÷</Button> </StackPanel> <StackPanel Orientation="Horizontal"> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">7</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">8</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">9</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">*</Button> </StackPanel> <StackPanel Orientation="Horizontal" > <Button Background="White" Click="Button_Click" Width="75" FontSize="33">4</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">5</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">6</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">-</Button> </StackPanel> <StackPanel Orientation="Horizontal" > <Button Background="White" Click="Button_Click" Width="75" FontSize="33">1</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">2</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">3</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">+</Button> </StackPanel> <StackPanel Orientation="Horizontal" > <Button Background="White" Width="75"></Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">0</Button> <Button Background="White" Click="Button_Click" Width="75" FontSize="33">.</Button> <Button Background="White" Click="EqualBtn_Click" Width="75" FontSize="33">=</Button> </StackPanel> </StackPanel> </Canvas> </Grid> </Window>