Search code examples
uwp

UWP App with UI from a dll and not the mainpage


I have a DLL that provides all the necessary UI. I am trying to wrap this into a UWP app and add some extra MS Store functionality. I started with the C# Blank App template. The problem is that this launches a MainPage and then the UI I want from the DLL opens up. Is there a way to not have the MainPage start at all?


Solution

  • I found that Win UI 3 is more modern than UWP apps. So I tried it and it allows to launch the UI app with custom window (the default template code creates a main window, but there is no need to use it). So, while this is not the answer for UWP, perhaps it is a wrong question for what I need to accomplish.