MainView.axaml 2.6 KB

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