UserPage.xaml 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <Page x:Class="MusicSmth.UserPage"
  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:MusicSmth"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="UserPage">
  10. <Page.Resources>
  11. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
  12. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
  13. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
  14. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
  15. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
  16. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
  17. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
  18. <ControlTemplate x:Key="ButtonTemplate1" TargetType="{x:Type ButtonBase}">
  19. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  20. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  21. </Border>
  22. <ControlTemplate.Triggers>
  23. </ControlTemplate.Triggers>
  24. </ControlTemplate>
  25. </Page.Resources>
  26. <Grid Background="#1DB954">
  27. <Image Source="Doggie.jpg" Stretch="Fill" Opacity="0.1"></Image>
  28. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,0">
  29. <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center">
  30. <Border Style="{DynamicResource BorderInput}" Height="210" Width="210">
  31. <Image Height="200" Width="200" Name="Photo" Source="\Resources\nophoto.jpeg"/>
  32. </Border>
  33. <Border Style="{DynamicResource BorderDefault}" Width="200" Margin="0,10,0,0" Height="20">
  34. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="UploadPhoto">Загрузить аватар</Button>
  35. </Border>
  36. <Border Style="{DynamicResource BorderDefault}" Width="200" Margin="0,10,0,0" Height="20">
  37. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="UploadPhotos">Загрузить фотографии</Button>
  38. </Border>
  39. <Border Style="{DynamicResource BorderDefault}" Width="200" Margin="0,10,0,0" Height="20">
  40. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="SelectPh">Выбрать из галереи</Button>
  41. </Border>
  42. </StackPanel>
  43. <StackPanel VerticalAlignment="Center" Margin="10,0,0,0" Orientation="Vertical">
  44. <TextBlock FontWeight="Bold" FontSize="16" Text="Фамилия"/>
  45. <TextBlock Name="Srname"/>
  46. <TextBlock FontWeight="Bold" FontSize="16" Text="Имя"/>
  47. <TextBlock Name="Nam"/>
  48. <TextBlock FontWeight="Bold" FontSize="16" Text="Отчество"/>
  49. <TextBlock Name="Patr"/>
  50. <TextBlock FontWeight="Bold" FontSize="16" Text="Пол"/>
  51. <TextBlock Name="Gen"/>
  52. <TextBlock FontWeight="Bold" FontSize="16" Text="Дата рождения"/>
  53. <TextBlock Name="Birthd"/>
  54. <TextBlock FontWeight="Bold" FontSize="16" Text="Логин"/>
  55. <TextBlock Name="Log"/>
  56. <TextBlock FontWeight="Bold" FontSize="16" Text="Пароль"/>
  57. <TextBlock Name="Pass"/>
  58. </StackPanel>
  59. </StackPanel>
  60. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,30">
  61. <Border Style="{DynamicResource BorderDefault}" Width="200" Margin="0,0,0,0" Height="20">
  62. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="RedUserInfo">Редактировать информацию</Button>
  63. </Border>
  64. <Border Style="{DynamicResource BorderDefault}" Width="300" Margin="0,10,0,0" Height="20">
  65. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="RedAuthInfo">Редактировать аутентификационные данные</Button>
  66. </Border>
  67. </StackPanel>
  68. </Grid>
  69. </Page>