Add project files.

This commit is contained in:
dan_c
2024-01-04 17:32:36 +00:00
parent 6358cf9567
commit da8af59391
48 changed files with 1710 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using Hyperbar.Desktop.Controls;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
namespace Hyperbar.Desktop;
public class AppInitializer([FromKeyedServices("Commands")] CommandView view,
[FromKeyedServices("Commands")] CommandViewModel viewModel,
DesktopFlyout desktopFlyout) :
IInitializer
{
public Task InitializeAsync()
{
view.DataContext = viewModel;
desktopFlyout.Placement = DesktopFlyoutPlacement.Top;
desktopFlyout.Content = view;
return Task.CompletedTask;
}
}