restructure project for part 2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user