How to check if an add-on has purchased that use StoreContext class
I have defined a durable AddOn, and when I used RequestPurchaseAsync() method to check if an add-on has purchased or not, it always shows UI which will be annoying to the user. In the previous version I used:…
Share a large file between two UWP apps using Stream Sockets
I need to share a large file between two UWP apps which are running in two different machines using stream sockets. In order to share the file successfully, I have to share file size before sharing the actual file. So I had to set a separate event in…
[C++/WinRT] How to use SpeechSynthesizer in UWP
I would like to implement the text to speech feature in my app. I see there are docs on how to do this here: https://learn.microsoft.com/en-us/uwp/api/windows.media.speechsynthesis.speechsynthesizer . However the example does not compile on a modern…
Setting Textbox.Text from BluetoothLEAdvertisementWatcher's received event throws an exception
I am creating a Bluetooth LE application in C# using a UWP project and have subscribed to get the Received event from the BluetoothLEAdvertisementWatcher. I can see the data correctly using Debug.Writeline to the Output window, but as soon as I try…
Localization issues when using App Bundle in UWP
I’m having issues with Localization in my UWP applications. I can reproduce this issue using Microsoft Localization sample. The following is what I have done to reproduce this issue: Step1: I open the project in Visual Studio. I test it…
How to write and read multiple types of data using Data Writer and Data Reader
I need to write a file length, file data and its type as a string value to the stream. I’m using the following code with Data Writer. writer = new DataWriter(socket.OutputStream); // if we have a StorageFile named file using (var…
Get Network usage information in UWP apps
We have a WPF app which is used for monitor Network for the desktop. Now my team decides to create a new UWP app to implement the similar functions. Currently I am trying to show network usage info in UWP, but I don’t know where to start and what API…
[C#]Scale a frameworkelement using a storyboard in UWP does not work
I have created a UWP app that I want to implement the following requirements: 1)First I need to move several animated images from various canvas locations to a specific location 2)Then at the same time scale those images from its current size to…