diff --git a/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs b/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs deleted file mode 100644 index 0d1c942..0000000 --- a/Hyperbar.Desktop.Contextual/ContextualCommandBuilder.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Hyperbar.Lifecycles; -using Microsoft.Extensions.DependencyInjection; - -namespace Hyperbar.Desktop.Contextual; - -public class ContextualCommandBuilder : - ICommandBuilder -{ - public void Create(IServiceCollection services) - { - services.AddCommandTemplate(); - } -} diff --git a/Hyperbar.Desktop.Controls/Hyperbar.Desktop.Controls.csproj b/Hyperbar.Desktop.Controls/Hyperbar.Desktop.Controls.csproj deleted file mode 100644 index 68bdadf..0000000 --- a/Hyperbar.Desktop.Controls/Hyperbar.Desktop.Controls.csproj +++ /dev/null @@ -1,35 +0,0 @@ - - - net8.0-windows10.0.19041.0 - 10.0.17763.0 - Hyperbar.Desktop.Controls - win10-x86;win10-x64;win10-arm64 - true - true - - - - - - - - - - - MSBuild:Compile - - - MSBuild:Compile - - - - - MSBuild:Compile - - - - - MSBuild:Compile - - - diff --git a/Hyperbar.Desktop.Primary/PrimaryCommandBuilder.cs b/Hyperbar.Desktop.Primary/PrimaryCommandBuilder.cs deleted file mode 100644 index af612f9..0000000 --- a/Hyperbar.Desktop.Primary/PrimaryCommandBuilder.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Hyperbar.Lifecycles; -using Microsoft.Extensions.DependencyInjection; - -namespace Hyperbar.Desktop.Primary; - -public class PrimaryCommandBuilder : - ICommandBuilder -{ - public void Create(IServiceCollection services) - { - services.AddCommandTemplate(); - } -} - diff --git a/Hyperbar.Desktop.Primary/PrimaryCommandView.xaml.cs b/Hyperbar.Desktop.Primary/PrimaryCommandView.xaml.cs deleted file mode 100644 index a4dbd6e..0000000 --- a/Hyperbar.Desktop.Primary/PrimaryCommandView.xaml.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Microsoft.UI.Xaml.Controls; - -namespace Hyperbar.Desktop.Primary; - -public sealed partial class PrimaryCommandView : Page -{ - public PrimaryCommandView() => InitializeComponent(); -} diff --git a/Hyperbar.Desktop.Primary/PrimaryCommandViewModel.cs b/Hyperbar.Desktop.Primary/PrimaryCommandViewModel.cs deleted file mode 100644 index b9263fb..0000000 --- a/Hyperbar.Desktop.Primary/PrimaryCommandViewModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Hyperbar.Lifecycles; -using Hyperbar.Templates; - -namespace Hyperbar.Desktop.Primary; - -public class PrimaryCommandConfiguration -{ - -} - -public class PrimaryCommandViewModel(ITemplateFactory templateFactory) : - ICommandViewModel, - ITemplatedViewModel -{ - public ITemplateFactory TemplateFactory { get; } = templateFactory; -} - diff --git a/Hyperbar.Windows.Contextual/ContextualCommandWidgetBuilder.cs b/Hyperbar.Windows.Contextual/ContextualCommandWidgetBuilder.cs new file mode 100644 index 0000000..03bdb78 --- /dev/null +++ b/Hyperbar.Windows.Contextual/ContextualCommandWidgetBuilder.cs @@ -0,0 +1,15 @@ +using Hyperbar.Lifecycles; +using Microsoft.Extensions.DependencyInjection; + +namespace Hyperbar.Windows.Contextual; + +public class ContextualCommandWidgetBuilder : + ICommandWidgetBuilder +{ + public void Create(IServiceCollection services) + { + services + .AddWritableConfiguration() + .AddCommandTemplate(); + } +} diff --git a/Hyperbar.Windows.Contextual/ContextualCommandWidgetConfiguration.cs b/Hyperbar.Windows.Contextual/ContextualCommandWidgetConfiguration.cs new file mode 100644 index 0000000..90f0ddf --- /dev/null +++ b/Hyperbar.Windows.Contextual/ContextualCommandWidgetConfiguration.cs @@ -0,0 +1,5 @@ +namespace Hyperbar.Windows.Contextual; + +public class ContextualCommandWidgetConfiguration +{ +} diff --git a/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml b/Hyperbar.Windows.Contextual/ContextualCommandWidgetView.xaml similarity index 60% rename from Hyperbar.Desktop.Contextual/ContextualCommandView.xaml rename to Hyperbar.Windows.Contextual/ContextualCommandWidgetView.xaml index ad58c7c..191d57a 100644 --- a/Hyperbar.Desktop.Contextual/ContextualCommandView.xaml +++ b/Hyperbar.Windows.Contextual/ContextualCommandWidgetView.xaml @@ -1,9 +1,9 @@ -