ProfilePage.xaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <Page x:Class="MyTests.Pages.ProfilePage"
  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:MyTests.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="419"
  9. d:DesignWidth="692"
  10. Title="ProfilePage"
  11. Background="{StaticResource color1}">
  12. <Grid Margin="25"
  13. Background="{StaticResource color2}">
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="55*"/>
  16. <ColumnDefinition Width="159*"/>
  17. </Grid.ColumnDefinitions>
  18. <Grid Grid.Column="0">
  19. <StackPanel Orientation="Vertical"
  20. Grid.Column="0"
  21. VerticalAlignment="Top"
  22. Margin="5">
  23. <TextBlock Text="Name"
  24. HorizontalAlignment="Center"
  25. FontSize="20">
  26. </TextBlock>
  27. <Image
  28. Name="ProfileImg"
  29. Height="auto"
  30. Width="auto"
  31. VerticalAlignment="Top"
  32. HorizontalAlignment="Center"
  33. Margin="0,0,0,15"
  34. Source="/MyTests;component/Resources/StandartImage.png"/>
  35. <Button Content="Изменить"
  36. HorizontalAlignment="Center"
  37. Height="30"
  38. Width="150"
  39. VerticalAlignment="Top"
  40. Click="EditImageButton_Click"/>
  41. </StackPanel>
  42. </Grid>
  43. <Grid Grid.Column="1">
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="95*"/>
  46. <RowDefinition Height="274*"/>
  47. </Grid.RowDefinitions>
  48. <StackPanel Orientation="Vertical"
  49. Margin="10,10,10,0"
  50. Background="{StaticResource color3}"
  51. VerticalAlignment="Top" Height="74">
  52. <Label Name="EmailBox"
  53. Content="Markus Bodhi"
  54. FontSize="20"/>
  55. <Label Name="InfoBox"
  56. Content="Info:"
  57. FontSize="20"/>
  58. </StackPanel>
  59. <ListBox Grid.Row="1"
  60. Name="TestsListBox"
  61. Margin="10"
  62. Background="{StaticResource color3}"
  63. BorderBrush="{StaticResource color3}">
  64. <ScrollViewer Name="scroll"
  65. VerticalScrollBarVisibility="Visible">
  66. </ScrollViewer>
  67. </ListBox>
  68. </Grid>
  69. </Grid>
  70. </Page>