I am looking to develop a WPF application, if not UWP app, that will programmatically add a specific device (a Samsung Tablet) as a wireless display device for Win10. Eg. I have only 1 screen now, I want to add the tablet as my Screen 2 (extend my current Desktop).
It is basically what the 'Win key + K' does, minus the device selection part. Both the Win 10 system and the tablet will be on the same Wifi network.
I have checked out the following samples from Windows UWP samples.
https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/BasicMediaCasting https://github.com/Microsoft/Windows-universal-samples/tree/main/Samples/AdvancedCasting https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/Projection
Using 'Win + K', or using 'add a wireless display' option from Display Settings I am able to find the tablet and connect to it, and enable UIBC, so that I can use the tablet stylus to work on tablet for Windows program such as Whiteboard.
With BasicMedia Casting and AdvanceCasting samples, I am either unable to find the tablet device, or find the device with a 'Phone' icon/category in front. (For 'Win +K' option, the tablet is showed as a 'display' category. ) And I am unable to connect to the tablet with the 2 samples.
With Projection sample, I am able to find and connect to the tablet, but no way to enable UIBC. In addition, Project sample projects a particular application to the tablet, not showing a desktop, although I find out that it does add the tablet as a 2nd screen.
May I know if there is any sample that is suitable for me? Or can point me to any documentation on this topic? And how to enable UIBC programmatically in Windows?
TIA