<Page x:Class="Hotel_Course_Project.ClientChangeOrAddPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:materialDesign="https://materialdesigninxaml.net/winfx/xaml/themes"
      xmlns:local="clr-namespace:Hotel_Course_Project"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="ClientChangeOrAddPage" Loaded="Page_Loaded">

    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4*"></ColumnDefinition>
            <ColumnDefinition Width="3*"></ColumnDefinition>
            <ColumnDefinition Width="3*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.2*"></RowDefinition>
            <RowDefinition Height="0.2*"></RowDefinition>
            <RowDefinition Height="0.2*"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="0.2*"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Фамилия</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Имя</TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Отчество</TextBlock>

        <TextBox Grid.Row="0" Grid.Column="2" x:Name="CLName" Text="{Binding LName}"></TextBox>
        <TextBox Grid.Row="1" Grid.Column="2" x:Name="CFName" Text="{Binding FName}"></TextBox>
        <TextBox Grid.Row="2" Grid.Column="2" x:Name="CMName" Text="{Binding MName}"></TextBox>
        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">Фотография паспорта</TextBlock>
        <Image x:Name="CPassportPhoto" Grid.RowSpan="4" Grid.Row="1" Source="{Binding Passport}" MouseLeftButtonDown="CPassportPhoto_MouseLeftButtonDown"></Image>
        <Button Grid.Row="6" Grid.Column="1" x:Name="ClientDeleteOrRestoreBtn" Click="ClientDeleteOrRestoreBtn_Click"></Button>
        <Button Grid.Row="6" Grid.Column="2" x:Name="ClientChangeOrAddBtn" Click="ClientChangeOrAddBtn_Click"></Button>
    </Grid>
</Page>
