PageForService.axaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. Width="900" Height="490"
  7. xmlns:vm ="using:kuzminIVProjectWorkOnDemo.ViewModels"
  8. x:Class="kuzminIVProjectWorkOnDemo.PageForService"
  9. x:DataType="vm:PageForServiceViewModel"
  10. Icon="/Assets/school_logo.ico"
  11. Title="Школа языков Леарн">
  12. <Grid Margin="10">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="*" />
  15. <RowDefinition Height="60" />
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="570" />
  19. <ColumnDefinition Width="*" />
  20. </Grid.ColumnDefinitions>
  21. <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center">
  22. <StackPanel>
  23. <TextBlock Text="Основное изображение" />
  24. <StackPanel>
  25. <Image Width="200" Height="200" />
  26. <Button Content="Изменить фото" Width="200" Height="40" Margin="10" Classes="ButtonInTemplate" />
  27. </StackPanel>
  28. </StackPanel>
  29. <StackPanel>
  30. <StackPanel>
  31. <TextBlock Text="ID" />
  32. <TextBox IsReadOnly="True" Text="{Binding Id}" />
  33. </StackPanel>
  34. <StackPanel>
  35. <TextBlock Text="Наименование" />
  36. <TextBox />
  37. </StackPanel>
  38. <StackPanel>
  39. <TextBlock Text="Стоимость" />
  40. <TextBox />
  41. </StackPanel>
  42. <StackPanel>
  43. <TextBlock Text="Длительность в минутах" />
  44. <TextBox />
  45. </StackPanel>
  46. <StackPanel>
  47. <TextBlock Text="Описание" />
  48. <TextBox />
  49. </StackPanel>
  50. <StackPanel>
  51. <TextBlock Text="Скидка" />
  52. <TextBox />
  53. </StackPanel>
  54. <TextBlock Text="Сообщения" />
  55. </StackPanel>
  56. </StackPanel>
  57. <ListBox SelectionMode="Multiple" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Grid.Row="0" Grid.Column="1" >
  58. <ListBox.ItemsPanel>
  59. <ItemsPanelTemplate>
  60. <WrapPanel />
  61. </ItemsPanelTemplate>
  62. </ListBox.ItemsPanel>
  63. <ListBox.ItemTemplate>
  64. <DataTemplate>
  65. <StackPanel>
  66. <Image Width="100" Height="100" />
  67. </StackPanel>
  68. </DataTemplate>
  69. </ListBox.ItemTemplate>
  70. </ListBox>
  71. <TextBlock Grid.Row="0" Grid.Column="1" Text="Нет фото" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
  72. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10" HorizontalAlignment="Center">
  73. <Button Width="200" Margin="10" Content="Сохранить изменения" Classes="ButtonInTemplate" Height="40"/>
  74. <Button Width="260" Margin="10" Content="Добавить дополнительные фото" Classes="ButtonInTemplate" Height="40" />
  75. </StackPanel>
  76. <Button Grid.Row="1" Grid.Column="1" Width="200" Margin="10" Content="Отмена" Classes="ButtonInTemplate" Height="40" />
  77. </Grid>
  78. </Window>