<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"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="TravelAroundRussia.Views.EditHotelPage"
			 xmlns:vm="using:TravelAroundRussia.ViewModels"
			 x:DataType="vm:MainWindowViewModel">
	<Grid Margin="5">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"></RowDefinition>
			<RowDefinition Height="*"></RowDefinition>
		</Grid.RowDefinitions>

		<Grid Grid.Row="0">
			<Button Command="{Binding EditToHotel}" HorizontalAlignment="Left" Classes="Menu">Назад</Button>
			<TextBlock Text="{Binding EditHotelPage.HeaderPage}" HorizontalAlignment="Center" Classes="Header">Добавление отеля</TextBlock>
			<Button Command="{Binding AddHotel}" HorizontalAlignment="Right" Classes="Menu">Сохранить</Button>
		</Grid>

		<Grid Grid.Row="1" HorizontalAlignment="Center">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"></ColumnDefinition>
				<ColumnDefinition Width="Auto"></ColumnDefinition>
			</Grid.ColumnDefinitions>

			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
				<RowDefinition Height="Auto"></RowDefinition>
			</Grid.RowDefinitions>

			<TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 5 0">Название</TextBlock>
			<TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 5 0">Описание</TextBlock>
			<TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 5 0">Страна</TextBlock>
			<TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 5 0">Количество звезд</TextBlock>

			<TextBox Text="{Binding EditHotelPage.Name}" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" Height="50" Margin="0 5 5 0"></TextBox>
			<TextBox Text="{Binding EditHotelPage.Description}" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" Height="150" Margin="0 5 5 0"></TextBox>
			<ComboBox SelectedItem="{Binding EditHotelPage.SelectedCountry}" ItemsSource="{Binding EditHotelPage.Countries}" Grid.Row="2" Grid.Column="1" Margin="0 5 5 0"></ComboBox>
			<MaskedTextBox Text="{Binding EditHotelPage.Star}" Mask="0" Grid.Row="3" Grid.Column="1" Margin="0 5 5 0"></MaskedTextBox>

			<CheckBox IsChecked="{Binding EditHotelPage.TourCheck}" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2">Добавить туры страны если они есть</CheckBox>
		</Grid>		
	</Grid>
</UserControl>
