DashboardContainer.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <UserControl x:Class="PRSDesktop.DashboardContainer"
  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:PRSDesktop"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Border BorderBrush="Gray" BorderThickness="0">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <Border Grid.Row="0" BorderBrush="Gray" BorderThickness="0.75" CornerRadius="5,5,0,0" Background="WhiteSmoke">
  16. <DockPanel Background="Transparent">
  17. <Button x:Name="Settings"
  18. DockPanel.Dock="Right"
  19. Width="25" Height="25"
  20. Margin="0,0,5,0"
  21. Click="Settings_Click" Background="Transparent" BorderThickness="0">
  22. <Image Source="pack://application:,,,/Resources/edit.png"/>
  23. </Button>
  24. <Label x:Name="DashboardName"
  25. VerticalContentAlignment="Center"
  26. DockPanel.Dock="Left" Margin="5,0,0,0"/>
  27. <StackPanel x:Name="HeaderItemsRight"
  28. DockPanel.Dock="Right"
  29. Margin="5"
  30. Orientation="Horizontal"/>
  31. <StackPanel x:Name="HeaderItems"
  32. DockPanel.Dock="Left"
  33. Margin="5"
  34. Orientation="Horizontal"/>
  35. </DockPanel>
  36. </Border>
  37. <ContentControl Grid.Row="1" x:Name="ContentControl" Margin="0,2,0,0"/>
  38. </Grid>
  39. </Border>
  40. </UserControl>