PageUpdADD.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Page x:Class="practica12.Pages.PageUpdADD"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:practica12.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageUpdADD">
  10. <Grid>
  11. <StackPanel>
  12. <StackPanel HorizontalAlignment="Center" Margin="10">
  13. <StackPanel>
  14. <TextBlock Text="Наименование" Style="{StaticResource TBStyle}" />
  15. <TextBox Name="tbName" MaxLength="100"/>
  16. <TextBlock Text="Количество звезд" Style="{StaticResource TBStyle}" />
  17. <TextBox Name="tbCountOfStars" TextAlignment="Center" MaxLength="1" ToolTip="Отель может принимать следующее значение количества звёзд: целое значение от 0 до 5"/>
  18. <TextBlock Text="Страна" Style="{StaticResource TBStyle}" />
  19. <StackPanel >
  20. <ComboBox Name="cbCountry" Width="300" HorizontalAlignment="Left"/>
  21. </StackPanel>
  22. <TextBlock Text="Описание:" Style="{StaticResource TBStyle}"/>
  23. </StackPanel>
  24. <TextBox Name="tbDescription" TextWrapping="Wrap" AcceptsReturn="True" Height="217" Width="422"/>
  25. </StackPanel>
  26. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="50,0,50,0">
  27. <Button Name="btnBack" Content="Назад" Style="{StaticResource btnstyle1}" Margin="5" Click="btnBack_Click"/>
  28. <Button Name="btnAddUpd" Style="{StaticResource btnstyle1}" Content="Добавить/Изменить" Margin="5" Click="btnAddUpd_Click" Cursor="Hand"/>
  29. </StackPanel>
  30. </StackPanel>
  31. </Grid>
  32. </Page>