MainView.axaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:vm="clr-namespace:qmonlib.ui.ViewModels"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="qmonlib.ui.Views.MainView"
  8. x:DataType="vm:MainViewModel">
  9. <Design.DataContext>
  10. <!-- This only sets the DataContext for the previewer in an IDE,
  11. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  12. <vm:MainViewModel />
  13. </Design.DataContext>
  14. <!--[+]Split LVL 0-->
  15. <SplitView IsPaneOpen="true"
  16. DisplayMode="CompactOverlay"
  17. CompactPaneLength="32"
  18. OpenPaneLength="296">
  19. <SplitView.Pane>
  20. <Button VerticalAlignment="Top" Width="32" Height="32" HorizontalAlignment="Right">
  21. <Button.Content>
  22. <Image Source="/Images/32/adjust.png" />
  23. </Button.Content>
  24. </Button>
  25. <!-- Filter section -->
  26. </SplitView.Pane>
  27. <!--[+]Split LVL 1-->
  28. <SplitView IsPaneOpen="true"
  29. DisplayMode="Inline"
  30. CompactPaneLength="32"
  31. OpenPaneLength="296" HorizontalAlignment="Right">
  32. <SplitView.Pane>
  33. <Button VerticalAlignment="Top" Width="32" Height="32" HorizontalAlignment="Left">
  34. <Button.Content>
  35. <Image Source="/Images/32/log.png" />
  36. </Button.Content>
  37. </Button>
  38. <!-- Log section -->
  39. </SplitView.Pane>
  40. <!--[-]Split LVL 1-->
  41. <!-- Content section -->
  42. <Panel HorizontalAlignment="Stretch" VerticalAlignment="Top">
  43. <Panel.Background>
  44. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  45. <GradientStop Color="#FF1E1E1E" Offset="0" />
  46. <GradientStop Color="#FF2E2E2E" Offset="1" />
  47. </LinearGradientBrush>
  48. </Panel.Background>
  49. </Panel>
  50. </SplitView>
  51. <!--[-]Split LVL 0-->
  52. </SplitView>
  53. </UserControl>