827 questions with Windows App SDK tags

Sort by: Updated
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.
827 questions
asked 2025-02-13T10:27:26.75+00:00
Taw 0 Reputation points
commented 2025-02-21T09:58:34.7766667+00:00
Taw 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.
827 questions
asked 2025-02-10T11:59:45.8866667+00:00
commented 2025-02-21T06:16:06.04+00:00
Roy Li - MSFT 34,086 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.
827 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,086 Reputation points Microsoft Vendor
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.
827 questions
asked 2025-02-18T09:29:40.9333333+00:00
Chandru Vijayan 1 Reputation point
commented 2025-02-21T05:38:25.4866667+00:00
Roy Li - MSFT 34,086 Reputation points Microsoft Vendor
1 answer

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.
827 questions
asked 2025-02-18T23:16:20.3133333+00:00
Eduardo Gomez Romero 1,235 Reputation points
commented 2025-02-21T05:38:12.6033333+00:00
Roy Li - MSFT 34,086 Reputation points Microsoft Vendor
1 answer

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.
827 questions
asked 2025-02-20T07:21:11.4566667+00:00
Harshithraj1871 1,581 Reputation points
edited an answer 2025-02-21T02:31:25.2266667+00:00
Roy Li - MSFT 34,086 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.
827 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,801 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.
827 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.
827 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.
827 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,626 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.
827 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,305 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.
827 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.
827 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,086 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,078 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.
827 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,734 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,305 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,803 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.
827 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.
827 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,860 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,086 Reputation points Microsoft Vendor
0 answers

How to Disable Scrolling in a Navigation View with WindowsAppSDK

I have a WindowsAppSDK app that uses a navigation view control for navigation. For one of the pages, scrolling should be disabled, allowing the page to shrink to fit within the navigation view's content pane. How can scrolling be disabled and the page…

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.
827 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,305 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
831 questions
asked 2025-01-17T22:59:10.8633333+00:00
jm6271 20 Reputation points
commented 2025-01-31T01:52:30.9866667+00:00
Roy Li - MSFT 34,086 Reputation points Microsoft Vendor
2 answers

WinUI3 TabView Binding Not Updating Correctly - Recycling Instances?

Is this a bug in TabView implementation? Or what could I be doing wrong? Summary: Binding seems to get out of sync when adding and removing tabs from tab TabView. Minimal Working Example that Demonstrates the Issue: Code for minimal working example…

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.
827 questions
asked 2025-01-13T17:40:45.3233333+00:00
Eric Brandt 45 Reputation points
edited the question 2025-01-24T01:19:21.6866667+00:00
Jack J Jun 24,801 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to implement alternating row colors in a ListView using Windows App SDK

I have a Windows App SDK app that has a ListView, and I want the row colors to alternate. What is the best way to achieve this?

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.
827 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,305 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
831 questions
asked 2025-01-19T20:09:53.58+00:00
jm6271 20 Reputation points
accepted 2025-01-21T17:48:42.4266667+00:00
jm6271 20 Reputation points
1 answer

Need primary window on top of another primary window using WinUI3 and win32

Hi team, I am referring the below code sample which is provided by your team. https://app.box.com/s/wbpx7rzvwyqna66z0yckfprcf6qxg9kh So now we have requirement to keep two primary window on top of another main window. and 1st main window 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.
827 questions
asked 2021-11-23T10:38:01.427+00:00
MM, Sunil 86 Reputation points
edited the question 2025-01-17T15:18:53.03+00:00
TP 104.1K Reputation points