OrderPage.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <Page x:Class="MyMoviesWPF.MVVM.View.Pages.OrderPage"
  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:MyMoviesWPF.MVVM.View.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="900" d:DesignWidth="1600"
  9. Title="OrderPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="64*"/>
  13. <RowDefinition Height="11*"/>
  14. </Grid.RowDefinitions>
  15. <Button Content="Продолжить"
  16. HorizontalAlignment="Left" VerticalAlignment="Center"
  17. Grid.Row="1" Grid.Column="1" Height="75" Width="250"
  18. Command="{Binding ContinuePayment}" IsEnabled="{Binding ContinuePaymentEnability}"/>
  19. <Button Content="Отмена"
  20. HorizontalAlignment="Right" VerticalAlignment="Center"
  21. Grid.Row="1" Grid.Column="1" Height="75" Width="250"
  22. Command="{Binding Cancel}"/>
  23. <Border HorizontalAlignment="Right" VerticalAlignment="Center" Height="360" Width="500"
  24. Background="GhostWhite" BorderBrush="Gainsboro" BorderThickness="1">
  25. <StackPanel Margin="10">
  26. <ComboBox x:Name="ComboBox" Text="AAAAA" ItemsSource="{Binding Orders}" SelectedItem="{Binding SelectedOrder}" HorizontalAlignment="Right">
  27. <ComboBox.ItemTemplate>
  28. <DataTemplate>
  29. <TextBlock Text="{Binding IdmovieNavigation.Name}"/>
  30. </DataTemplate>
  31. </ComboBox.ItemTemplate>
  32. </ComboBox>
  33. <Border Width="150" Height="25" HorizontalAlignment="Right" Margin="0, 5">
  34. <TextBlock Text="{Binding Amount}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  35. </Border>
  36. <Border Width="150" Height="25" HorizontalAlignment="Right" Margin="0, 5">
  37. <TextBox Text="{Binding SelectedOrder.IduserNavigation.Login, TargetNullValue=Кому}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  38. </Border>
  39. <Border Width="150" Height="25" HorizontalAlignment="Right" Margin="0, 200, 10, 0">
  40. <TextBlock Text="{Binding Sum, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  41. </Border>
  42. </StackPanel>
  43. </Border>
  44. <Border HorizontalAlignment="Left" VerticalAlignment="Center" Height="360" Width="500"
  45. Background="GhostWhite" BorderBrush="Gainsboro" BorderThickness="1">
  46. <StackPanel Margin="10">
  47. <ComboBox x:Name="ComboBox2" Text="AAAAA" ItemsSource="{Binding Payments}" SelectedItem="{Binding SelectedPayment}" HorizontalAlignment="Left">
  48. <ComboBox.ItemTemplate>
  49. <DataTemplate>
  50. <TextBlock Text="{Binding }"/>
  51. </DataTemplate>
  52. </ComboBox.ItemTemplate>
  53. </ComboBox>
  54. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  55. <Border Width="150" Height="25">
  56. <TextBox Text="Счет" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  57. </Border>
  58. <Border Width="75" Height="25">
  59. <TextBox Text="Код" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  60. </Border>
  61. </StackPanel>
  62. <Border Width="150" Height="25" HorizontalAlignment="Right" Margin="0, 5">
  63. <TextBox Text="Действует до" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  64. </Border>
  65. <Border Width="150" Height="25" HorizontalAlignment="Right" Margin="0, 5, 0, 0">
  66. <TextBox Text="Имядержатель" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  67. </Border>
  68. </StackPanel>
  69. </Border>
  70. </Grid>
  71. </Page>