How to use Face Detection API in WinUI3 app?
Hi MS team, https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/camerafacedetection/ The link above is MS demo for UWP app, but I want to use it in WinUI3 app. When i merge the code to WinUI3, there are some elements not…
Cannot Unlock Taskbar Pinning with LimitedAccessFeatureStatus
I want to pin my application to the taskbar. I followed the steps here, obtained my LAF keys from Microsoft, and now I am trying to implement the feature. Not sure if the LAF keys are bound to a specific application name have other restrictions. I…

Unable to connect to any of my industrial usb3 cameras in winui3 C#
We are porting our UI from Win Forms/WPF to WinUI3 C#. My classes to connect and control industrial cameras like Basler and IDS usb3 versions work as expected in WPF. But I am unable to connect to them when using WinUI3. All of the problems (the errors…

WinUI3 : How to catch CTRL + A key press in WinUI3 TextBox
Hi, Im working on WinUI3 desktop application in CPP. I wanted to Catch CTRL + A press on WinUI3 TextBox. I checked online and found CoreWindow.GetKeyState(VirtualKey), but this will not work on Desktop applciation. I used TextBox.KeyDown with…
Clarification on Whitelisting IdentityServiceDNS for WNS Notifications
We are using Windows Notification Service (WNS), and I noticed the following FQDNs listed under IdentityServiceDNS in the latest XML configuration file: login.microsoftonline.com login.live.com Given that our environment does not use Microsoft…
How to simulate user interaction in WinUI3 desktop application
Hi, I'm working on WinUI3 desktop application in CPP. I want to test my application for user interaction like keyboard input, mouse input, dragging widgets/ Window, sending OS events, etc. I tried simulating with SendInput API, it did work well, but is…
color doesn't show, wrong color selected
I am building an app with WinUI (Is not very pleasant) anyway have a model, that represents color, but when I bind, I don't see the colors, and when I select the color is not the correct color namespace NanoFlow.Model { public class ColorOption(Color…
How to navigate between controls on KeyDown event.
I'm trying to have a KeyDown function that makes the focus move to the next control. I've tried this but it throws me an error: private void Obj_KeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key.ToString() == "Enter") …
How to extend execution of background task in WinUI 3 (analog of ExtendedExecutionSession in UWP)?
My application has a background task that performs a cleanup of unnecessary or unused system files selected by the user. However, this task takes more than 30 seconds to complete, which exceeds the standard time limit. Question: Is there any way to…
How do I use resource files in a WinUI project
I'm trying to use the resource system in VS, but when I try to access a resource, it can't find it. Here's my setup... I have a WinUI project with a library DemoApp GfxToolkit In the GfxToolkit library project I have a resources file…

Marshalling Error for WinUI 3 Application
Hello. So I've been creating a WinUI 3 app C# in visual studio. For loading the list of installed fonts, I had to install Microsoft.Graphics.Win2D NuGet package. For that, it required me to update the NuGet packages of "WindowsAppSDK" and…

What is the equivalent of "UWP device apps" in the new Windows App SDK?
We would like to make an app and driver that gets installed when our USB device is plugged into a Windows PC. "UWP device apps" seems to do the trick: https://learn.microsoft.com/en-us/windows-hardware/drivers/devapps/ However it looks like MS…
Set min size of windows with Windows App SDK
Are there any method to set min size of windows with windows app sdk like we could do before, with ApplicationView.SetPreferredMinSize(Size) (uwp)

Will Voice Access work with SAPI.
I can't seem to get a proper response on what is happening with Speech Recognition. I use a complex speech command grammar that I use with programs developed for my music publishing business. That was defined using the Speech SDK and implemented via…

HttpListener in WinUI app doesn't catch params in link
Hi! I try to get authorization code for Microsoft, using authorization via browser. I use HttpListener for catching redirect with code, but it's catch only redirect without parameters. In browser I saw redirect with code. My code: private string…
Using Styles in XAML
I have defined styles in Styles.xaml within a ResourceDictionary, then I "import" them at the root element in my main window <RelativePanel.Resources> <Style TargetType="Button"…
Restrict printer selection while printing in WinUI app
In a WinUI app, I want to restrict the user from selecting any printer, only allowing a predefined set of printers. Additionally, the user should not be able to modify the print settings, such as altering the paper size or page range; they should only be…
Win32 context menu items issues
Hello everyone, could you please tell me what can go wrong with getting context menu items via win32? First of all, do I understand correctly that the ampersand in the name is normal? But at the same time, some elements have a localized dwTypeData, some…
Change or Neutralize default button visual states
I am defining a style for Buttons to have different from default behavior when user interacts with it. First lets assume I want to neutralize the visual statues of the button. I still want the button to be clickable, I just don't want the click or mouse…
Can we set preview of Drag-and-Drop before drag event in WinUI2?
Hi, I'm working on WinUI2 application with Xaml Island in C++. Suppose we've one draggable TextBlock and when we drag it, we can see some preview moving with the mouse pointer moving. In order to set that preview I'm doing in DragStarting handler as…