830 questions with Windows App SDK-related tags

Sort by: Updated
0 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-28T11:59:49.6+00:00
Jack 20 Reputation points
2 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-13T10:27:26.75+00:00
Taw 0 Reputation points
commented 2025-02-28T11:30:22.71+00:00
Castorix31 87,076 Reputation points
0 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-26T14:37:09.6733333+00:00
Scott Alexander 0 Reputation points
commented 2025-02-28T08:33:38.4866667+00:00
Castorix31 87,076 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-25T12:23:50.6666667+00:00
Harshithraj1871 1,621 Reputation points
commented 2025-02-26T06:19:26.85+00:00
Harshithraj1871 1,621 Reputation points
1 answer

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…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,816 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-18T09:29:40.9333333+00:00
Chandru Vijayan 6 Reputation points
commented 2025-02-26T03:02:01.2066667+00:00
Roy Li - MSFT 34,096 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-20T07:21:11.4566667+00:00
Harshithraj1871 1,621 Reputation points
commented 2025-02-25T10:35:51.74+00:00
Harshithraj1871 1,621 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-18T23:16:20.3133333+00:00
Eduardo Gomez Romero 1,255 Reputation points
accepted 2025-02-24T09:51:51.1866667+00:00
Eduardo Gomez Romero 1,255 Reputation points
2 answers One of the answers was accepted by the question author.

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") …

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,317 questions
asked 2021-08-19T15:57:34.337+00:00
David Simões 21 Reputation points
answered 2025-02-23T01:15:35.7366667+00:00
Wah Than 0 Reputation points
2 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-10T11:59:45.8866667+00:00
commented 2025-02-21T06:16:06.04+00:00
Roy Li - MSFT 34,096 Reputation points Microsoft Vendor
1 answer

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-06T03:09:25.4+00:00
Gavin Williams 761 Reputation points
commented 2025-02-21T05:38:44.96+00:00
Roy Li - MSFT 34,096 Reputation points Microsoft Vendor
0 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-06T17:52:05.8566667+00:00
Hemanth B 886 Reputation points
edited the question 2025-02-21T02:00:02.6266667+00:00
Jack J Jun 24,881 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-20T00:45:40.01+00:00
John Le 20 Reputation points
commented 2025-02-20T18:23:57.92+00:00
John Le 20 Reputation points
1 answer One of the answers was accepted by the question author.

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)

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2022-10-25T16:52:12.697+00:00
Mysterious_Dev 46 Reputation points
commented 2025-02-20T16:47:28.1066667+00:00
Niki M 0 Reputation points
0 answers

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-06T16:09:51.2133333+00:00
drtk1954 0 Reputation points
commented 2025-02-07T01:59:16.1466667+00:00
Jeanine Zhang-MSFT 10,856 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,317 questions
asked 2025-02-06T09:30:01.5333333+00:00
bexolder 41 Reputation points
accepted 2025-02-06T22:18:15.3966667+00:00
bexolder 41 Reputation points
1 answer One of the answers was accepted by the question author.

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"…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-04T00:17:17.8433333+00:00
Eliyahu 40 Reputation points
accepted 2025-02-05T20:36:54.41+00:00
Eliyahu 40 Reputation points
1 answer

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-01-24T10:24:43.7566667+00:00
Navaneeth 21 Reputation points
edited the question 2025-02-05T07:18:50.4833333+00:00
Roy Li - MSFT 34,096 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,736 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,317 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,877 questions
asked 2025-01-28T15:52:31.3966667+00:00
123244 140 Reputation points
accepted 2025-02-04T15:41:13+00:00
123244 140 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
asked 2025-02-01T18:58:14.29+00:00
Eliyahu 40 Reputation points
commented 2025-02-03T20:34:10.5966667+00:00
Eliyahu 40 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
830 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,865 questions
asked 2025-01-13T12:48:42.26+00:00
Shyam Butani 355 Reputation points
edited the question 2025-02-03T09:43:22.9233333+00:00
Roy Li - MSFT 34,096 Reputation points Microsoft Vendor