AdminPage.xaml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Page x:Class="MusicSmth.AdminPage"
  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="AdminPage">
  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. <Trigger Property="Button.IsDefaulted" Value="true">
  24. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  25. </Trigger>
  26. <Trigger Property="IsEnabled" Value="false">
  27. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
  28. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
  29. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
  30. </Trigger>
  31. </ControlTemplate.Triggers>
  32. </ControlTemplate>
  33. </Page.Resources>
  34. <Grid Background="#1DB954">
  35. <TextBlock HorizontalAlignment="Center" Margin="0,10,0,0" FontSize="20">Меню администратора</TextBlock>
  36. <StackPanel VerticalAlignment="Center" >
  37. <Border Style="{DynamicResource BorderDefault}" Height="23" Width="200">
  38. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="DataView">Просмотр данных пользователей</Button>
  39. </Border>
  40. <Border Style="{DynamicResource BorderDefault}" Height="23" Width="200" Margin="0,10,0,0">
  41. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="TableView">Просмотр основной таблицы</Button>
  42. </Border>
  43. <Border Style="{DynamicResource BorderDefault}" Height="23" Width="200" Margin="0,10,0,0">
  44. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="GoUserPage">Перейти в личный кабинет</Button>
  45. </Border>
  46. </StackPanel>
  47. </Grid>
  48. </Page>