| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="practiceApplicaiton.LoginPage"
- Title="Вход в систему"
- BackgroundColor="#F5F7FA">
- <VerticalStackLayout Padding="60" Spacing="20" VerticalOptions="Center">
- <Label Text="Гостиничный корпус"
- FontSize="28" FontAttributes="Bold"
- HorizontalOptions="Center" TextColor="#2E4057"/>
- <Label Text="Вход в систему" FontSize="16"
- HorizontalOptions="Center" TextColor="#666"/>
- <Frame BackgroundColor="LightGray" CornerRadius="12" Padding="24"
- BorderColor="#E0E0E0" HasShadow="True">
- <VerticalStackLayout Spacing="16">
- <Label Text="Роль" FontAttributes="Bold" TextColor="#2E4057"/>
- <Picker x:Name="RolePicker" Title="Выберите роль">
- <Picker.Items>
- <x:String>Администратор</x:String>
- <x:String>Менеджер</x:String>
- </Picker.Items>
- </Picker>
- <Label Text="Пароль" FontAttributes="Bold" TextColor="#2E4057"/>
- <Entry x:Name="PasswordEntry" IsPassword="True"
- Placeholder="Введите пароль"
- ReturnCommand="{Binding LoginCommand}"/>
- <Label x:Name="ErrorLabel" TextColor="Red"
- IsVisible="False" HorizontalOptions="Center"/>
- <Button x:Name="LoginButton"
- Text="Войти"
- BackgroundColor="#4472C4"
- TextColor="White"
- CornerRadius="8"
- Clicked="OnLoginClicked"/>
- </VerticalStackLayout>
- </Frame>
- </VerticalStackLayout>
- </ContentPage>
|