restructure project for part 2

This commit is contained in:
TheXamlGuy
2024-01-27 10:55:53 +00:00
parent a322893166
commit 48925b89ff
96 changed files with 383 additions and 351 deletions
@@ -0,0 +1,24 @@
using System.Runtime.CompilerServices;
using WinRT;
namespace Hyperbar.UI.Windows;
public static class IWinRTObjectExtensions
{
public static void InitializeComponent<TComponent>(this TComponent component,
ref bool loaded,
[CallerFilePath] string path = "")
where TComponent :
IWinRTObject
{
if (loaded)
{
return;
}
loaded = true;
//Uri resourceLocator = ApplicationExtensionHost.Current.LocateResource(component, callerFilePath);
//Application.LoadComponent(component, resourceLocator, ComponentResourceLocation.Nested);
}
}