Culuculator.axaml 1.9 KB

12345678910111213141516171819202122232425
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="300"
  6. x:Class="Culusas.Views.Culuculator"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:Culusas.ViewModels"
  9. Background="#FF8C00">
  10. <Grid>
  11. <StackPanel HorizontalAlignment="Center" Margin="50">
  12. <TextBlock Text="Выберите арифметическую операцию" FontFamily="Century Gothic" HorizontalAlignment="Center"/>
  13. <ComboBox x:Name="CBBVibor" HorizontalAlignment="Center" Margin="0 6 0 0" ItemsSource="{Binding CululVM.deistV}" SelectedIndex="{Binding CululVM.Index}"/>
  14. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >
  15. <TextBox FontFamily="Century Gothic" Text="{Binding CululVM.InitA}" BorderBrush="#CC5500" CornerRadius="9" Background="#FAA76C" Foreground="Black" Margin="20" Height="20" Width="40"/>
  16. <TextBlock Text="{Binding CululVM.Operator}" Margin="20 20 20 0"/>
  17. <TextBox FontFamily="Century Gothic" Text="{Binding CululVM.InitB}" BorderBrush="#CC5500" CornerRadius="9" Background="#FAA76C" Margin="20" Height="20" Width="40"/>
  18. </StackPanel>
  19. <Button Command="{Binding CululVM.DeistviaAandB}" HorizontalAlignment="Center" FontFamily="Century Gothic" BorderBrush="#FF8C00" CornerRadius="9" Background="#CC5500" Height="30" Width="90">Вычислить</Button>
  20. <TextBlock Text="Результат" FontFamily="Century Gothic" Margin="0,10,0,0" HorizontalAlignment="Center" Classes="tbl1"/>
  21. <TextBlock Text="{Binding CululVM.Provertik}" Classes="tbl1" Margin="0,10,0,0" Background="White" Height="30" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  22. </StackPanel>
  23. </Grid>
  24. </UserControl>