123456789101112131415161718192021222324252627282930313233343536 |
- <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:views="using:AvaloniaApplicationTest.Views"
- xmlns:vm="using:AvaloniaApplicationTest.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AvaloniaApplicationTest.Views.AddPage">
- <Grid>
- <StackPanel>
- <Button Command="{Binding ToHotels}" Content="Назад" HorizontalAlignment="Left" Margin="10"/>
- <StackPanel Margin="20">
- <TextBlock Text="Название отеля"/>
- <TextBox Text="{Binding PageAdd.Name}" Width="200" HorizontalAlignment="Left"/>
- <TextBlock Text="Описание" Margin="0,20,0,0"/>
- <TextBox Text="{Binding PageAdd.Description}" Width="200" HorizontalAlignment="Left"/>
- <TextBlock Text="Количество звезд" Margin="0,20,0,0"/>
- <TextBox Text="{Binding PageAdd.CountOfStars}" Width="10" HorizontalAlignment="Left"/>
- <TextBlock Text="Страна" Margin="0,20,0,0"/>
- <ComboBox ItemsSource="{Binding PageAdd.CBContries}" Width="200" HorizontalAlignment="Left">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Name}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <StackPanel Orientation="Horizontal" Margin="10">
- <Button Content="Сохранить" Command="{Binding PageAdd.Save}" Margin="0,0,15,0"/>
- <Button Content="Отмена" Command="{Binding ToHotels}"/>
- </StackPanel>
- <TextBlock Margin="10" Text="{Binding PageAdd.Message}" Foreground="#e31e24"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </UserControl>
|