wMemberUserPrifile.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <Page x:Class="teaTime.wMemberUserPrifile"
  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:teaTime"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="wMemberUserPrifile">
  10. <Page.Resources>
  11. <Style x:Key="FocusVisual">
  12. <Setter Property="Control.Template">
  13. <Setter.Value>
  14. <ControlTemplate>
  15. <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
  16. </ControlTemplate>
  17. </Setter.Value>
  18. </Setter>
  19. </Style>
  20. <SolidColorBrush x:Key="Button.Static.Background" Color="#E8ECC8"/>
  21. <SolidColorBrush x:Key="Button.Static.Border" Color="#E8ECC8"/>
  22. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#E8ECC8"/>
  23. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#E8ECC8"/>
  24. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#E8ECC8"/>
  25. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#E8ECC8"/>
  26. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#E8ECC8"/>
  27. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#E8ECC8"/>
  28. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#E8ECC8"/>
  29. <Style x:Key="RoundedButtonStyle" TargetType="{x:Type Button}">
  30. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
  31. <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
  32. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
  33. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  34. <Setter Property="BorderThickness" Value="0"/>
  35. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  36. <Setter Property="VerticalContentAlignment" Value="Center"/>
  37. <Setter Property="Padding" Value="1"/>
  38. <Setter Property="Template">
  39. <Setter.Value>
  40. <ControlTemplate TargetType="{x:Type Button}">
  41. <Border x:Name="border" CornerRadius="10" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
  42. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  43. </Border>
  44. <ControlTemplate.Triggers>
  45. <Trigger Property="IsDefaulted" Value="true">
  46. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  47. </Trigger>
  48. <Trigger Property="IsMouseOver" Value="true">
  49. <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
  50. <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
  51. </Trigger>
  52. <Trigger Property="IsPressed" Value="true">
  53. <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
  54. <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
  55. </Trigger>
  56. <Trigger Property="IsEnabled" Value="false">
  57. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
  58. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
  59. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
  60. </Trigger>
  61. </ControlTemplate.Triggers>
  62. </ControlTemplate>
  63. </Setter.Value>
  64. </Setter>
  65. </Style>
  66. </Page.Resources>
  67. <Grid>
  68. <Viewbox Stretch="Uniform" Grid.RowSpan="2">
  69. <Border Width="800" Height="450">
  70. <Grid>
  71. <Button x:Name="bHome" Width="35" Height="35" Margin="0 20 50 0" HorizontalAlignment="Right" VerticalAlignment="Top" ToolTip ="Главная" Click="bHome_Click" BorderThickness="0" Background="White" Style="{DynamicResource RoundedButtonStyle}">
  72. <Button.Content>
  73. <Viewbox Width="30" Height="30">
  74. <Image Source="pack://application:,,,/pic/home.png"/>
  75. </Viewbox>
  76. </Button.Content>
  77. </Button>
  78. <TextBlock Text="Профиль" FontFamily="{StaticResource GogoiaDeco}" FontSize="35" HorizontalAlignment="Left" Foreground="#A77748" Margin="45 15 0 0"/>
  79. <Image x:Name="aImage" Width="125" Height="125" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="45 75 0 0"/>
  80. <Grid Margin="220 0 0 0" HorizontalAlignment="Left">
  81. <StackPanel Orientation="Horizontal" Margin="0 80 0 0">
  82. <TextBlock Text="ФИО" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="0 10 0 0" VerticalAlignment="Top" />
  83. <StackPanel Margin="55 5 0 0">
  84. <TextBlock x:Name="aFIO" Width="260" Height="25" Text="" FontFamily="{StaticResource UniNeue-Regular}" HorizontalAlignment="Left" FontSize="12" Foreground="#A77748"/>
  85. <Line X1="0" Y1="0" X2="260" Y2="0" StrokeDashArray="4 2" StrokeDashCap="Round" Stroke="#A77748" />
  86. </StackPanel>
  87. </StackPanel>
  88. <StackPanel Orientation="Horizontal" Margin="0 120 0 0">
  89. <TextBlock Text="Телефон" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="0 10 0 0" VerticalAlignment="Top" />
  90. <StackPanel Margin="30 5 0 0">
  91. <TextBlock x:Name="aPhoneNumber" Width="260" Height="25" Text="" FontFamily="{StaticResource UniNeue-Regular}" HorizontalAlignment="Left" FontSize="12" Foreground="#A77748"/>
  92. <Line X1="0" Y1="0" X2="260" Y2="0" StrokeDashArray="4 2" StrokeDashCap="Round" Stroke="#A77748" />
  93. </StackPanel>
  94. </StackPanel>
  95. <StackPanel Orientation="Horizontal" Margin="0 160 0 0">
  96. <TextBlock Text="Email" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="0 10 0 0" VerticalAlignment="Top" />
  97. <StackPanel Margin="50 5 0 0">
  98. <TextBlock x:Name="aEmail" Width="260" Height="25" Text="" FontFamily="{StaticResource UniNeue-Regular}" HorizontalAlignment="Left" FontSize="12" Foreground="#A77748"/>
  99. <Line X1="0" Y1="0" X2="260" Y2="0" StrokeDashArray="4 2" StrokeDashCap="Round" Stroke="#A77748" />
  100. </StackPanel>
  101. </StackPanel>
  102. </Grid>
  103. <Button x:Name="bChange" Width="140" Height="65" Margin="0 115 50 0" HorizontalAlignment="Right" VerticalAlignment="Top" Click="bChange_Click" Content="Изменить Данные" FontFamily="{StaticResource GogoiaDeco}" FontSize="20" Foreground="#A77748" Style="{DynamicResource RoundedButtonStyle}" Background="#FAEDCD"/>
  104. <TextBlock Text="Ближайшие мероприятия, на которые вы записаны" FontFamily="{StaticResource GogoiaDeco}" FontSize="20" HorizontalAlignment="Left" Foreground="#A77748" Margin="45,219,0,6"/>
  105. <!--<Grid Width="700" Height="170" Canvas.Top="510" Canvas.Left="40" Margin="45,246,55,34">
  106. <Grid.Resources>
  107. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#E8ECC8" />
  108. <Style TargetType="ScrollBar">
  109. <Setter Property="ScrollViewer.Background" Value="#E8ECC8" />
  110. </Style>
  111. </Grid.Resources>
  112. <DataGrid x:Name="tInfo" CanUserAddRows="False" AutoGenerateColumns="False" CanUserSortColumns="True" Loaded="tInfo_Loaded"
  113. Width="700" Height="Auto" ColumnHeaderHeight="25"
  114. FontFamily="{StaticResource UniNeue-Bold}" Foreground="#A77748" FontSize="15"
  115. BorderBrush="#D3DB94" Background="#FAEDCD"
  116. RowBackground="#FAEDCD" AlternatingRowBackground="#FAEDCD" VerticalGridLinesBrush="#D3DB94"
  117. HorizontalGridLinesBrush="#D3DB94"
  118. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" SelectionChanged="tInfo_SelectionChanged"
  119. >
  120. <DataGrid.Resources>
  121. <Style TargetType="TextBlock" x:Key="WrapText">
  122. <Setter Property="TextWrapping" Value="Wrap" />
  123. </Style>
  124. </DataGrid.Resources>
  125. <DataGrid.ColumnHeaderStyle>
  126. <Style TargetType="DataGridColumnHeader">
  127. <Setter Property="Background" Value="#D3DB94" />
  128. <Setter Property="HorizontalContentAlignment" Value="Center" />
  129. </Style>
  130. </DataGrid.ColumnHeaderStyle>
  131. <DataGrid.Columns>
  132. <DataGridTextColumn Binding="{Binding Path= Num}" IsReadOnly="True" FontSize="10" Header="" Width="30" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" />
  133. <DataGridTextColumn Binding="{Binding Path= Date}" IsReadOnly="True" FontSize="10" Header="Дата" Width="60" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748"/>
  134. <DataGridTextColumn Binding="{Binding Path= Time}" IsReadOnly="True" FontSize="10" Header="Время" Width="60" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" />
  135. <DataGridTextColumn Binding="{Binding Path= Name}" IsReadOnly="True" FontSize="10" Header="Название" Width="100" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748"/>
  136. <DataGridTextColumn Binding="{Binding Path= Theme}" IsReadOnly="True" FontSize="10" Header="Тема" Width="100" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" />
  137. <DataGridTextColumn Binding="{Binding Path= Descript}" IsReadOnly="True" FontSize="10" Header="Описание" Width="*" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748"/>
  138. </DataGrid.Columns>
  139. </DataGrid>
  140. </Grid>-->
  141. <Grid Margin="45,251,80,25">
  142. <ListBox x:Name="nameTea" BorderThickness="0" d:ItemsSource="{d:SampleData ItemCount=5}" >
  143. <ListBox.ItemTemplate>
  144. <DataTemplate>
  145. <Grid Margin="5" Width="630" Height="150">
  146. <Rectangle Fill="#D3DB94" RadiusX="10" RadiusY="10"/>
  147. <TextBlock x:Name="aData" Text="25/25/55 15^15" FontFamily="{StaticResource GogoiaDeco}" FontSize="15" HorizontalAlignment="Left" Margin="32,10,0,-6" Foreground="#A77748"/>
  148. <TextBlock x:Name="aName0" Text="Название:" FontFamily="{StaticResource GogoiaDeco}" FontSize="15" HorizontalAlignment="Left" Margin="12,32,0,8" Foreground="#A77748"/>
  149. <TextBlock x:Name="aName" Text="" FontFamily="{StaticResource UniNeue-Regular}" FontSize="10" Margin="75,32,0,176" Foreground="#A77748" Width="529" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" HorizontalAlignment="Left"/>
  150. <TextBlock x:Name="aTheme0" Text="Тема:" FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Margin="12,64,0,6" Foreground="#A77748" HorizontalAlignment="Left"/>
  151. <TextBlock x:Name="aTheme" Text="" FontFamily="{StaticResource UniNeue-Regular}" FontSize="10" Margin="75,64,0,158" Foreground="#A77748" Width="475" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" HorizontalAlignment="Left"/>
  152. <TextBlock x:Name="aDescript0" Text="Описание:" FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Margin="10,90,0,10" Foreground="#A77748" HorizontalAlignment="Left"/>
  153. <TextBlock x:Name="aDescript" Text="" FontFamily="{StaticResource UniNeue-Regular}" FontSize="10" Margin="75,93,0,8" Foreground="#A77748" Width="529" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" HorizontalAlignment="Left"/>
  154. </Grid>
  155. </DataTemplate>
  156. </ListBox.ItemTemplate>
  157. </ListBox>
  158. </Grid>
  159. </Grid>
  160. </Border>
  161. </Viewbox>
  162. </Grid>
  163. </Page>