From d94add17f94189c71b93e6cb66559000f57aacd2 Mon Sep 17 00:00:00 2001 From: TheXamlGuy Date: Thu, 4 Jan 2024 23:02:51 +0000 Subject: [PATCH] Added primaey commands extenion/plugin --- .../ContextualCommandBuilder.cs | 3 +- .../ContextualCommandView.xaml | 8 +-- .../ContextualCommandView.xaml.cs | 2 +- .../ContextualCommandViewModel.cs | 9 +--- .../Hyperbar.Desktop.Contextual.csproj | 53 +++++++++---------- .../Hyperbar.Desktop.Primary.csproj | 26 +++++++++ .../PrimaryCommandBuilder.cs | 13 +++++ .../PrimaryCommandView.xaml | 9 ++++ .../PrimaryCommandView.xaml.cs | 8 +++ .../PrimaryCommandViewModel.cs | 9 ++++ Hyperbar.Desktop.Win32/KeyIntrop.cs | 2 +- Hyperbar.Desktop/App.xaml.cs | 6 ++- Hyperbar.Desktop/Hyperbar.Desktop.csproj | 1 + Hyperbar.sln | 18 +++++++ 14 files changed, 120 insertions(+), 47 deletions(-) create mode 100644 Hyperbar.Desktop.Primary/Hyperbar.Desktop.Primary.csproj create mode 100644 Hyperbar.Desktop.Primary/PrimaryCommandBuilder.cs create mode 100644 Hyperbar.Desktop.Primary/PrimaryCommandView.xaml create mode 100644 Hyperbar.Desktop.Primary/PrimaryCommandView.xaml.cs create mode 100644 Hyperbar.Desktop.Primary/PrimaryCommandViewModel.cs diff --git a/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs b/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs index da53c81..e53992f 100644 --- a/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs +++ b/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs @@ -2,7 +2,8 @@ using Microsoft.Extensions.DependencyInjection; namespace Hyperbar.Desktop.Contextual; -public class ContextualCommandBuilder : ICommandBuilder +public class ContextualCommandBuilder : + ICommandBuilder { public void Create(IServiceCollection services) { diff --git a/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml b/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml index 1c78ee6..ad58c7c 100644 --- a/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml +++ b/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml @@ -2,13 +2,7 @@ - + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">