Page_Home.xaml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <Page x:Class="MedicalCenter.Pages.Page_Home"
  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:MedicalCenter.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Home"
  10. Style="{StaticResource WinAll}">
  11. <Grid Margin="20">
  12. <Grid.RowDefinitions>
  13. <RowDefinition MaxHeight="50px"/>
  14. <RowDefinition Height="5*"/>
  15. </Grid.RowDefinitions>
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="0.3*"/>
  19. <ColumnDefinition/>
  20. <ColumnDefinition/>
  21. </Grid.ColumnDefinitions>
  22. <Image x:Name="avatar" Source="/Resources/Image/profile.png" />
  23. <StackPanel Orientation="Vertical" Grid.Column="1" VerticalAlignment="Center">
  24. <TextBlock x:Name="tbName" Text="Иванов Иван Иванович"/>
  25. <TextBlock x:Name="tbRole" Text="Администратор"/>
  26. </StackPanel>
  27. <StackPanel Orientation="Horizontal" Grid.Column="2" HorizontalAlignment="Right">
  28. <Button Content="История входа" x:Name="btn_history" Click="btn_history_Click" Margin="10 5" Padding="20 0" Width="200px" MaxWidth="300px"/>
  29. <Button Content="Выйти" x:Name="btn_leave" Click="btn_leave_Click" Margin="10 5" Padding="20 0"/>
  30. </StackPanel>
  31. </Grid>
  32. <Grid Grid.Row="1" Margin="20">
  33. <Grid.RowDefinitions>
  34. <RowDefinition/>
  35. <RowDefinition/>
  36. </Grid.RowDefinitions>
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition/>
  39. <ColumnDefinition/>
  40. </Grid.ColumnDefinitions>
  41. <Button x:Name="button_service" Click="button_service_Click" Margin="5">
  42. <Button.Content>
  43. <StackPanel Orientation="Vertical">
  44. <Image Source="/Pages/profile.png" Stretch="UniformToFill" Width="70"/>
  45. <Label Content="Услуги" HorizontalAlignment="Center"/>
  46. </StackPanel>
  47. </Button.Content>
  48. </Button>
  49. <Button Grid.Column="1" x:Name="button_worker" Click="button_worker_Click" Margin="5">
  50. <Button.Content>
  51. <StackPanel Orientation="Vertical">
  52. <Image Source="/Pages/profile.png" Stretch="UniformToFill" Width="70"/>
  53. <Label Content="Сотрудники" HorizontalAlignment="Center"/>
  54. </StackPanel>
  55. </Button.Content>
  56. </Button>
  57. <Button Grid.Column="1" Grid.Row="1" x:Name="button_user" Click="button_user_Click" Margin="5">
  58. <Button.Content>
  59. <StackPanel Orientation="Vertical">
  60. <Image Source="/Pages/profile.png" Stretch="UniformToFill" Width="70"/>
  61. <Label Content="Пациенты" HorizontalAlignment="Center"/>
  62. </StackPanel>
  63. </Button.Content>
  64. </Button>
  65. <Button Grid.Row="1" x:Name="button_result" Click="button_result_Click" Margin="5">
  66. <Button.Content>
  67. <StackPanel Orientation="Vertical">
  68. <Image Source="/Pages/profile.png" Stretch="UniformToFill" Width="70"/>
  69. <Label Content="Результаты" HorizontalAlignment="Center"/>
  70. </StackPanel>
  71. </Button.Content>
  72. </Button>
  73. </Grid>
  74. </Grid>
  75. </Page>