AddEditPage.xaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <Page x:Class="Savelev_ToursApp.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:Savelev_ToursApp"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AddEditPage">
  10. <Grid Background="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="97*"/>
  13. <RowDefinition Height="132*"/>
  14. <RowDefinition Height="109*"/>
  15. <RowDefinition Height="112*"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="27*"/>
  19. <ColumnDefinition Width="133*"/>
  20. </Grid.ColumnDefinitions>
  21. <TextBlock Text="Название" Grid.Row="0" ></TextBlock>
  22. <TextBlock Text="Количество звёезд" Grid.Row="1"></TextBlock>
  23. <TextBlock Text="Страна" Grid.Row="2"></TextBlock>
  24. <TextBlock MaxHeight="100" Grid.Column="1"></TextBlock>
  25. <TextBlock Grid.Column="1"/>
  26. <TextBox Text="{Binding Name}" Grid.Column="1" Margin="10,0,22,27" Height="29" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,3.25" Background="{DynamicResource {x:Static SystemColors.InactiveBorderBrushKey}}"/>
  27. <TextBox Text="{Binding CountOfStars}" Grid.Column="1" Margin="0,0,408,38" RenderTransformOrigin="0.311,0.92" Grid.Row="1" Background="{DynamicResource {x:Static SystemColors.InactiveBorderBrushKey}}" HorizontalAlignment="Right" Width="241" Height="34" VerticalAlignment="Bottom">
  28. <TextBox.RenderTransform>
  29. <TransformGroup>
  30. <ScaleTransform/>
  31. <SkewTransform AngleY="-0.112"/>
  32. <RotateTransform/>
  33. <TranslateTransform Y="-0.386"/>
  34. </TransformGroup>
  35. </TextBox.RenderTransform>
  36. </TextBox>
  37. <ComboBox SelectedItem="{Binding Country}" x:Name="ComboCountries" DisplayMemberPath="Name" Grid.Row="2" Grid.Column="1" Margin="0,0,10,31" Height="38" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="645"></ComboBox>
  38. <Button Content="Сохранить" Grid.ColumnSpan="2" Grid.Row="3" Name="BtnSave" Click="BtnSave_Click"></Button>
  39. </Grid>
  40. </Page>