You don’t pass a texture to that function. You need to first create a window, then create a swapchain for it using this:
And finally, blit to the said texture every frame, probably using this:
You don’t need to do any of this from MainPage.xaml.cs. Easiest way would probably be a C++ plugin.