'How to use UWP functionality from a .Net 6 WPF application?

I have a WPF application built for .Net Framework.

It references a UWP library for doing things like using Start-Tiles etc.

I'm now converting this WPF application to .Net 6, but can't seem to find a way to call UWP methods from it.

How can this be achieved?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source