AddEditPage.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <Page x:Class="KarpovTur.AddEditPage"
  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:KarpovTur"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AddEditPage">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="200"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="*"/>
  18. <RowDefinition Height="*"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <TextBlock Text="Название" ></TextBlock>
  22. <TextBlock Text="Количество звёзд" Grid.Row="1"></TextBlock>
  23. <TextBlock Text="Страна" Grid.Row="2"></TextBlock>
  24. <TextBox Text="{Binding Name}" MaxLength="100" Grid.Column="1"></TextBox>
  25. <TextBox Text="{Binding CountOfStars}" Grid.Column="1" Grid.Row="1" Width="600" HorizontalAlignment="Left"/>
  26. <ComboBox SelectedItem="{Binding Country}" Grid.Row="2" Grid.Column="1" x:Name="ComboCountries" DisplayMemberPath="Name" ></ComboBox>
  27. <Button Content="Сохранить" Grid.ColumnSpan="2" Grid.Row="3" Name="BtnSave" Click="BtnSave_Click"></Button>
  28. </Grid>
  29. </Page>