Policlinica2/Policlinica/Views/DoctorView.axaml

52 lines
2.4 KiB
XML

<UserControl 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:vm="using:Policlinica.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
x:Class="Policlinica.Views.DoctorView"
x:DataType="vm:DoctorViewModel">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="40" Spacing="20">
<TextBlock Text="Создание записи" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center"/>
<!-- Ввод имени клиента -->
<Border BorderBrush="LightGray" BorderThickness="1" Padding="15" CornerRadius="5">
<StackPanel Spacing="10">
<TextBlock Text="Имя клиента:" FontWeight="Bold" FontSize="14"/>
<TextBox Text="{Binding Name}" Padding="10" FontSize="13" Watermark="Введите имя"/>
</StackPanel>
</Border>
<!-- Ввод фамилии клиента -->
<Border BorderBrush="LightGray" BorderThickness="1" Padding="15" CornerRadius="5">
<StackPanel Spacing="10">
<TextBlock Text="Фамилия клиента:" FontWeight="Bold" FontSize="14"/>
<TextBox Text="{Binding Surname}" Padding="10" FontSize="13" Watermark="Введите фамилию"/>
</StackPanel>
</Border>
<!-- Выбор врача -->
<Border BorderBrush="LightGray" BorderThickness="1" Padding="15" CornerRadius="5">
<StackPanel Spacing="10">
<TextBlock Text="Выберите врача:" FontWeight="Bold" FontSize="14"/>
<ComboBox ItemsSource="{Binding DoctorList}"
SelectedItem="{Binding SelectedDoctor}"
DisplayMemberBinding="{Binding Title}"
Padding="10"
FontSize="13"/>
</StackPanel>
</Border>
<!-- Кнопка -->
<Button Content="Далее"
FontSize="16"
Padding="20,12"
Background="Green"
Foreground="White"
HorizontalAlignment="Center"
Command="{Binding StartTestCommand}"/>
</StackPanel>
</UserControl>