832 questions with Windows App SDK-related tags

Sort by: Updated
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.
832 questions
asked 2022-07-01T08:22:42.937+00:00
lei han 46 Reputation points
edited an answer 2025-03-04T11:53:00.23+00:00
Zakaria TAHRI 0 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.
832 questions
asked 2025-03-03T21:34:32.8866667+00:00
Scott Alexander 0 Reputation points
commented 2025-03-04T08:04:04.99+00:00
Castorix31 87,386 Reputation points
1 answer

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.
832 questions
asked 2025-03-03T05:53:18.5666667+00:00
Harshithraj1871 1,621 Reputation points
answered 2025-03-03T09:41:25.13+00:00
Jeanine Zhang-MSFT 10,866 Reputation points Microsoft External Staff
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.
832 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.
832 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.
832 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,386 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.
832 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,817 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.
832 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 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.
832 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.
832 questions
asked 2025-02-18T23:16:20.3133333+00:00
Eduardo Gomez Romero 1,295 Reputation points
accepted 2025-02-24T09:51:51.1866667+00:00
Eduardo Gomez Romero 1,295 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.
832 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,321 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.
832 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 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.
832 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 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.
832 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
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.
832 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.
832 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.
832 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,866 Reputation points Microsoft External Staff
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.
832 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,321 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.
832 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.
832 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 External Staff