From 47dffc0fa0b060c7d8c89d42c90678991c889626 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Sat, 21 Nov 2020 10:58:20 +0100 Subject: [PATCH] UI - Added sidebar pinning, this closes #493 UI - Wrap long tooltips, this closes #480 --- .../Artemis.UI.Shared.csproj | 7 ++ .../Properties/DesignTimeResources.xaml | 8 +++ .../Resources/ArtemisShared.xaml | 13 ++++ src/Artemis.UI/Screens/RootView.xaml | 46 ++++++++++--- src/Artemis.UI/Screens/RootViewModel.cs | 69 +++++++++++++------ .../Screens/Sidebar/SidebarView.xaml | 17 +++++ .../Screens/Sidebar/SidebarViewModel.cs | 12 +++- 7 files changed, 138 insertions(+), 34 deletions(-) create mode 100644 src/Artemis.UI.Shared/Properties/DesignTimeResources.xaml diff --git a/src/Artemis.UI.Shared/Artemis.UI.Shared.csproj b/src/Artemis.UI.Shared/Artemis.UI.Shared.csproj index 2a0574570..d4306a598 100644 --- a/src/Artemis.UI.Shared/Artemis.UI.Shared.csproj +++ b/src/Artemis.UI.Shared/Artemis.UI.Shared.csproj @@ -53,6 +53,13 @@ + + + MSBuild:Compile + Designer + true + + diff --git a/src/Artemis.UI.Shared/Properties/DesignTimeResources.xaml b/src/Artemis.UI.Shared/Properties/DesignTimeResources.xaml new file mode 100644 index 000000000..dec7a9dd8 --- /dev/null +++ b/src/Artemis.UI.Shared/Properties/DesignTimeResources.xaml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/Artemis.UI.Shared/Resources/ArtemisShared.xaml b/src/Artemis.UI.Shared/Resources/ArtemisShared.xaml index 7629bfd44..5c5a50b54 100644 --- a/src/Artemis.UI.Shared/Resources/ArtemisShared.xaml +++ b/src/Artemis.UI.Shared/Resources/ArtemisShared.xaml @@ -18,4 +18,17 @@ + + + + + + + \ No newline at end of file diff --git a/src/Artemis.UI/Screens/RootView.xaml b/src/Artemis.UI/Screens/RootView.xaml index c4d5e45bb..66a7a286b 100644 --- a/src/Artemis.UI/Screens/RootView.xaml +++ b/src/Artemis.UI/Screens/RootView.xaml @@ -7,6 +7,7 @@ xmlns:s="https://github.com/canton7/Stylet" xmlns:screens="clr-namespace:Artemis.UI.Screens" xmlns:mde="clr-namespace:MaterialDesignExtensions.Controls;assembly=MaterialDesignExtensions" + xmlns:converters="clr-namespace:Artemis.UI.Converters" mc:Ignorable="d" FadeContentIfInactive="False" Icon="/Resources/Images/Logo/logo-512.png" @@ -48,6 +49,7 @@ + - + - + + + + + + + + + + + + + + + + + ShowNavigationDrawerButton="{Binding PinSidebar.Value, Converter={StaticResource InverseBooleanConverter}}" + DockPanel.Dock="Top" + DockPanel.ZIndex="1"> - + FontSize="14" + Margin="10 0" + ToolTip="The time the last frame took to render" /> -