DashboardContainer.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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="1">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <Border Grid.Row="0" BorderBrush="Gray" BorderThickness="0,0,0,1">
  16. <DockPanel Background="WhiteSmoke">
  17. <Button x:Name="Settings"
  18. DockPanel.Dock="Right"
  19. Width="25" Height="25"
  20. Margin="5"
  21. Click="Settings_Click">
  22. <Image Source="pack://application:,,,/Resources/edit.png"/>
  23. </Button>
  24. <Label x:Name="DashboardName"
  25. VerticalContentAlignment="Center"
  26. DockPanel.Dock="Left"/>
  27. <StackPanel x:Name="HeaderItems"
  28. DockPanel.Dock="Left"
  29. Margin="5"
  30. Orientation="Horizontal"/>
  31. </DockPanel>
  32. </Border>
  33. <ContentControl Grid.Row="1" x:Name="Content"/>
  34. </Grid>
  35. </Border>
  36. </UserControl>