<?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="TravelDocumentsOrganizer.MainPage">
<ScrollView>
<VerticalStackLayout Padding="20" Spacing="15">
<Label
Text="Органайзер документов"
FontSize="28"
FontAttributes="Bold"
HorizontalOptions="Center"/>
<Frame BorderColor="Gray">
<VerticalStackLayout>
<Label Text="Паспорт"
FontAttributes="Bold"
FontSize="20"/>
<Label Text="Номер: AB123456"/>
</VerticalStackLayout>
</Frame>
<Frame BorderColor="Gray">
<VerticalStackLayout>
<Label Text="Билет"
FontAttributes="Bold"
FontSize="20"/>
<Label Text="Амстердам → Париж"/>
</VerticalStackLayout>
</Frame>
<Frame BorderColor="Gray">
<VerticalStackLayout>
<Label Text="Отель"
FontAttributes="Bold"
FontSize="20"/>
<Label Text="Hilton Hotel"/>
</VerticalStackLayout>
</Frame>
<Button
Text="Добавить документ"
Clicked="OnAddClicked"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>
namespace TravelDocumentsOrganizer;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void OnAddClicked(object sender, EventArgs e)
{
await DisplayAlert(
"Добавление",
"Документ добавлен",
"OK");
}
}