838 questions with Windows App SDK-related tags

Sort by: Updated
0 answers

When I apply labels and protections using the MIP SDK, the program stops in CommitAsync.

Hello, I'm using the MIP SDK to label it as C#. As I implemented and tested the feature, the CommitAsync function generated hang, so I couldn't process it. What should I check? I also post the MIP SDK log. Currently, it's stopped in the log I attached…

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.
838 questions
asked 2025-03-12T06:52:46.4766667+00:00
정용우 100 Reputation points
commented 2025-03-12T08:31:05.3733333+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

How to handle HotKey in WinUI3 window

Hi, I'm working on a WinUI 3 desktop application in C++. I need to capture the CTRL + I shortcut in a WinUI 3 window. Since WinUI 3 does not support KeyboardAccelerators for windows, I tried using WM_HOTKEY. However, when a TextBox has focus and uses…

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.
838 questions
asked 2025-03-11T12:45:28.5+00:00
Harshithraj1871 1,661 Reputation points
commented 2025-03-12T05:23:29.9233333+00:00
Harshithraj1871 1,661 Reputation points
1 answer

How can I add my DS4 Windows app to the Microsoft Store? What are the requirements and steps for publishing it?

I have developed a DS4 Windows application and want to publish it on the Microsoft Store. I would like to know the necessary steps, requirements, and any guidelines I need to follow to get my app approved. Additionally, are there any specific policies…

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.
838 questions
asked 2025-03-11T08:21:24.8533333+00:00
DS4 Windows 0 Reputation points
answered 2025-03-12T03:02:53.6066667+00:00
Junjie Zhu - MSFT 20,771 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

How to intercept Keyboard event before its sent to widget in WinUI3

Hi, I'm working on WinUI3 desktop application inn cpp. I want to intercept keyboard event before it reaches the widget and do custom handling and not trigger the default handling. I tried KeyDown event, but with that we cant stop the default handling,…

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.
838 questions
asked 2025-03-08T11:09:49.0433333+00:00
Harshithraj1871 1,661 Reputation points
accepted 2025-03-10T08:39:34.34+00:00
Harshithraj1871 1,661 Reputation points
1 answer One of the answers was accepted by the question author.

How to convert HRESULT to human readable message

Hi, Im working on WinUI3 desktop application in cpp. I want to convert HRESULT error code to human-readable text (Like Format Message in Win32). We can use Format Message, which only prints the HRESULT error code derived from Win32, not all HRESULT error…

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.
838 questions
asked 2025-03-03T05:53:18.5666667+00:00
Harshithraj1871 1,661 Reputation points
accepted 2025-03-07T06:30:17.8333333+00:00
Harshithraj1871 1,661 Reputation points
0 answers

How to create a new winui3 c# app whose underlying libraries match the MediaCaptureWinUI3 sample

With help on another question, I've been able to connect to my industrial camera and display an image. But I've only been able to do that by starting using the MediaCaptureWinUI3 sample project. I have tried to see what is special about it to see what…

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.
838 questions
asked 2025-03-03T21:34:32.8866667+00:00
Scott Alexander 0 Reputation points
commented 2025-03-07T02:43:26.2633333+00:00
Junjie Zhu - MSFT 20,771 Reputation points Microsoft External Staff
0 answers

3d print stl file for circuit

Hello I have an app made in winUI, for making lines on a canvas, but I need some help. I need to be able to save this file in STL formal (for 3d printing) ViewModel using System.Linq; namespace NanoFlow.ViewModels { public partial class…

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.
838 questions
asked 2025-03-04T22:38:04.7366667+00:00
Eduardo Gomez Romero 1,315 Reputation points
commented 2025-03-07T01:56:10.69+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
1 answer

Getting an error when uploading WinUI3 project MSIX package via Partner Center - Microsoft Store

When I upload the built .MSIX or .MSIZUPLOAD package to Microsoft Partner Center, it gives an error even without uploading. Local PC validation is passed. I have associated the app with the store as well. What could be this error and how can I solve…

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.
838 questions
asked 2025-03-05T14:51:28.76+00:00
Nimesh Ekanayake 0 Reputation points
edited the question 2025-03-06T02:04:55.8+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
5 answers One of the answers was accepted by the question author.

[Winui3]How to show a model window?

PrivacyWindow::PrivacyWindow() { InitializeComponent(); //...... window_handle_ = GetWindowHandle(); auto window_id = winrt::Microsoft::UI::GetWindowIdFromWindow(window_handle_); app_window_ =…

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.
838 questions
asked 2022-07-01T08:22:42.937+00:00
lei han 46 Reputation points
edited an answer 2025-03-05T11:59:40.8933333+00:00
Zakaria TAHRI 0 Reputation points
1 answer One of the answers was accepted by the question author.

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.
838 questions
asked 2025-02-28T11:59:49.6+00:00
Jack 40 Reputation points
accepted 2025-03-02T12:12:59.99+00:00
Jack 40 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.
838 questions
asked 2025-02-26T14:37:09.6733333+00:00
Scott Alexander 0 Reputation points
commented 2025-02-28T22:15:33.2566667+00:00
Scott Alexander 0 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.
838 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,721 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.
838 questions
asked 2025-02-25T12:23:50.6666667+00:00
Harshithraj1871 1,661 Reputation points
commented 2025-02-26T06:19:26.85+00:00
Harshithraj1871 1,661 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,818 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.
838 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,101 Reputation points Microsoft External Staff
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.
838 questions
asked 2025-02-20T07:21:11.4566667+00:00
Harshithraj1871 1,661 Reputation points
commented 2025-02-25T10:35:51.74+00:00
Harshithraj1871 1,661 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.
838 questions
asked 2025-02-18T23:16:20.3133333+00:00
Eduardo Gomez Romero 1,315 Reputation points
accepted 2025-02-24T09:51:51.1866667+00:00
Eduardo Gomez Romero 1,315 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.
838 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,338 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.
838 questions
asked 2025-02-10T11:59:45.8866667+00:00
commented 2025-02-21T06:16:06.04+00:00
Roy Li - MSFT 34,101 Reputation points Microsoft External Staff
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.
838 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,101 Reputation points Microsoft External Staff
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.
838 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 External Staff