i have Pi3 and i'm developing UWP to transfer data from/to Pi3 and another device (currently PC over UART)
but i can't get the right data, i'm using the Sample from Microsoft SerialSample but it didn't work, the data comes not right, i enforced the encoding in the App in both sides but no luck.
You need check hardware compatibility list to see if your device is supported on Windows IoT core.
Also, and for serial sample here is a note to state the supported USB-to-TTL cables or modules:
NOTE: Only USB-to-TTL cables and modules with Silicon Labs chipsets are natively supported on MinnowBoard Max and Raspberry Pi2.
So, USB-Serial CH340 is not supported on Windows IoT core.
For doing self testing of the device, you can use the sample and do the following two tests :
You will receive what you have sent if the device works normally.