A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A!
The document has a very clear statement that you must configure the StoreContext object to specify the application window when you create the StoreContext object. It doesn't matter how you use the StoreContext object.
For more information, please check the document: Using the StoreContext class with the Desktop Bridge
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.