Content
How to involve C++/WinRT lib in C# UWP App on Visual Studio 2022
I have a pre-built C++/WinRT lib (dll/lib/winmd...), I want to use it in my C# UWP App。 I want to query how to involve the ilb in my C# UWP project. (where to add reference of lib/winmd files in VS2022). Since C++/WinRT is self language projection, so…
[UWP's manifest] "Visual Assets" changing won't save.
When i try to make changes in sections...: "Assets" - ex. Small Tile, Medium... etc... "Scales" "Scaling Mode" "Apply recommended padding" ... they won't save at all, after returning to manifest it goes…


How to use "Windows.Media.Miracast" API to develop UIBC function (UWP app)
Hi Microsoft team, I am developing a UWP app, the function is screen share sink and able to send UIBC to source side. Source side is Android app. The screen share function works well by using "Windows.Media.Miracast" API. But I…
Problems with creating a local build of a UWP project
Hi, there are some unknown problems with the local build of the UWP project. I am using visual studio 2022 with the latest version. When trying to create a build in the Release Version, I get the following errors shown in the screenshot. What could be…


How to uncheck the click"allow bluetooth devices to find this pc" by windows api?
Hello, I want to use bluetooth to scan other devices, but don't want other devices can see windows pc. I found that if "allow bluetooth devices to find this pc" is checked, other devices can also find windows pc at any time. So how to make the…


How to restrict scrolling and panning with single finger and enable with two fingers in UWP ScrollViewer using touch screen?
Hi, In an UWP application, I am having a ScrollViewer in the XAML which contains a StackPanel as Content. In that StackPanel there are some images. XAML: <Grid> <ScrollViewer x:Name="scrollView"…


How to print in InkCanvas in the mvvm pattern
The window identifier is invalid. Windows.Graphics.Printing.PrintManager is not supported in the supplied view. A PrinterService has been made where it is: this failure occurs in the ShowPrintUIAsyn PrinterService. using…


How to open downloads folder in explorer through LaunchFolderAsync?
How to open the downloads folder in windows explorer using LaunchFolderAsync? I get access denied if i use the below code. System.UnauthorizedAccessException - Message=Access is denied string folderUrl=UserDataPaths.GetDefault().Downloads; var folder =…


Bluetooth Low Energy Multiply times ValueChanged notification
The GattCharacteristic.ValueChanged event handler is triggered multiple times. The same problem with "Windows-universal-samples" in "BluetoothLE" example. BluetoothLE" example... For example when I "connect to…


How to make MediaPlayer work with YUV420P which has full color range in UWP app
It looks like that MediaPlayer can only work with YUV420P which has limited color range. If I construct a MedisStremSource from YUV420P with full color range, it plays but loses some grey color.


How to do a AES decryption in UWP, for a data encrypted using RijndaelManaged in .NET Framework?
Hi, My UWP app receives some data from Server. The server is developed in .NET Framework. The server side encrypts the using the RijndaelManaged as below byte[] passwordKey = convertStringToByteArray("SharedKey"); using…


How do you make InputStreamOptions.Partial really be partial and not half the buffer size?
I am observing that InputStreamOptions.Partial isn't really acting partially, but typically requires 50% of the buffer to be full before it returns. fyi, this is in a loop: IBuffer blob = await SerialDeviceConnectedToRadioRX.InputStream.ReadAsync(new…


The UWP camera APIs will break work randomly when switching different widnows users
Hello Guys, My UWP app will call [MediaCapture] relevant APIs to take some photos. Now, if I switch different users and the start the app again, the code will catch exception when it run into the call StartPreviewAsync method. The issue doesn't occur…


[UWP] Item Count Exception
when i am trying to use Search Query Options & get items count from AppData folder (Path: C:\Users\mine\AppData\Local\Packages) an exception, please see attached image, not sure what is the issue with my code, any clue ?


ContactNameOrder.LastNameFirstName issue
In Windows 11 21H2 Build 22000.1641 it's not possible to set ContactManager.SystemDisplayNameOrder = ContactNameOrder.LastNameFirstName; or ContactManagerForUser.SystemDisplayNameOrder = ContactNameOrder.LastNameFirstName; anymore. Afterwards it is…
Is it possible to recognize two commas entered into TextBox?
I am asking for a code that will recognize two commas in one TextBox, so I can use double.Parse with no errors, cleaning one comma.
Could not create windows.data.pdf.pdfdocument instance for a particular PDF document in UWP Platform
We have been using the PdfDocument API to access the PDF pages and we will convert the pdf pages into Image, to view the page content in our control. However, while creating the PdfDocument instance, we are facing exception and we could see the same…


Trying to open a device using HidDevice FromIdAsync in UWP always returns null unless using FileAccessMode.Read
I can confirm that my HID device can have read and write capabilities, because this has been verified in WPF application, where one Endpoint can read and the other can read and write. I thought it might be a permissions issue, but I defined almost every…


[UWP] Bugreport: InputInjector injects touches in wrong position in case display is scaled
We are evaluating using the Windows.UI.Input.Preview.Injection namespace to automate testing our UWP (WinUI 2.8) application. We would like to simulate inputs using InputInjector. We tried the sample app available at: …


[UWP] Bugreport: InputInjector injects touches in wrong position in certain display setup
We are evaluating using the Windows.UI.Input.Preview.Injection namespace to automate testing our UWP (WinUI 2.8) application. We would like to simulate inputs using InputInjector. We tried the sample app available…

