|
@@ -4,7 +4,30 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:vm="using:Captcha.ViewModels"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
- x:DataType="vm:MainWindowViewModel"
|
|
|
+ x:DataType="vm:PageCalculateVM"
|
|
|
x:Class="Captcha.PageCalculate">
|
|
|
- Welcome to Avalonia!
|
|
|
+ <StackPanel HorizontalAlignment="Center" Name="Login" Margin="20">
|
|
|
+ <Border Classes = "trash" Padding="40">
|
|
|
+ <StackPanel >
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Margin="0,0,0,20" >
|
|
|
+ Выберете арифметическую операцию:
|
|
|
+ </TextBlock>
|
|
|
+ <ComboBox Margin="0,0,0,20" HorizontalAlignment = "Center" ItemsSource="{Binding Arif}" SelectedItem="{Binding SelIt}"></ComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel HorizontalAlignment = "Center" Orientation="Horizontal">
|
|
|
+ <TextBox Text="{Binding A}" Margin="0,0,20,20"></TextBox>
|
|
|
+ <TextBlock Text="{Binding C}" Margin="0,0,20,20"></TextBlock>
|
|
|
+ <TextBox Text="{Binding B}" Margin="0,0,0,20"></TextBox>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel>
|
|
|
+ <Button HorizontalAlignment = "Center" Margin="0,0,0,20" Content="Вычислить"/>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="Результат: " Margin="0,0,0,20"></TextBlock>
|
|
|
+ <TextBlock Text="{Binding Result}" Margin="0,0,0,20"></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ </StackPanel>
|
|
|
</UserControl>
|