ex-ex-01-math-interpreter/MathInterpreter/MainWindow.axaml
github-classroom[bot] 4b1294b32d
Initial commit
2025-06-03 15:18:01 +00:00

24 lines
1.4 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
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:MathInterpreter"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="250"
x:Class="MathInterpreter.MainWindow"
x:DataType="local:MainWindow"
Width="400" Height="250"
WindowStartupLocation="CenterScreen"
Title="MathInterpreter">
<StackPanel Orientation="Vertical" Margin="20, 20" HorizontalAlignment="Stretch">
<TextBlock FontSize="34" HorizontalAlignment="Center">Math Interpreter</TextBlock>
<StackPanel Orientation="Horizontal" Margin="0,20,0,0" Spacing="8" HorizontalAlignment="Center">
<TextBox Width="160" HorizontalContentAlignment="Center" Watermark="Enter expression"
Name="ExpressionInput" VerticalContentAlignment="Center"></TextBox>
<Button FontSize="20" Width="40" HorizontalContentAlignment="Center"
VerticalContentAlignment="Center" Click="Calculate">=</Button>
<Border Width="100">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Name="Result">?</TextBlock>
</Border>
</StackPanel>
</StackPanel>
</Window>