911 questions with Windows development | Windows App SDK tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

WinUI packaged app does not produce _bundle.msixupload file

I created a simple WinUI Blank App (packaged), but I have not been able to produce a bundle file for Microsoft Store submission. Here is what I did. Right-click the project > Package and Publish > Associate App with the Store Right-click the…

Windows development | Windows App SDK
asked 2025-08-10T05:24:23.5733333+00:00
Hong 1,306 Reputation points
commented 2025-08-13T13:19:37.7366667+00:00
Hong 1,306 Reputation points
1 answer One of the answers was accepted by the question author.

What is a context which allows MemberwiseClone() to be called

I have a Person class and a ocPeople class defined as: ocPeople = ObservableCollection(Of Person) ocPeople is used as the ItemsSource for a ComboBox. What I want to do is to create another ObservableCollection(Of Person) which is the original with the…

Windows development | Windows App SDK
asked 2025-08-07T22:08:10.11+00:00
RogerSchlueter-7899 1,466 Reputation points
commented 2025-08-12T01:47:03.0866667+00:00
RogerSchlueter-7899 1,466 Reputation points
0 answers

UDTs in IDL cause C2787 in Visual Studio C++ because of faulty DECLSPEC location in generated interface definition header file

As mentioned in https://developercommunity.visualstudio.com/t/UDTs-in-IDL-cause-C2787-because-of-fault/10947425, the MIDL compiler appears to put the uuid in front of, instead of after, the "struct" keyword in the generated header file, causing…

Windows development | Windows App SDK
asked 2025-08-11T07:22:16.7733333+00:00
Gert Leunen 0 Reputation points
1 answer

SignTool Error: This file format cannot be signed because it is not recognized

I have been attempting to sign a .cat file, but I keep getting the error message that the file format is not recognized. I thought that maybe it was the file itself, so I tried with .pdf, .txt, and .exe files, but the same thing happens. I have a valid…

Windows development | Windows App SDK
asked 2025-08-03T10:31:30.09+00:00
Nerd With Coffee 0 Reputation points
commented 2025-08-08T20:39:41.09+00:00
Nerd With Coffee 0 Reputation points
0 answers

WinRT Windows.Graphics.Capture leads to application freezing

I use WinRT Windows.Graphics.Capture to capture screens or windows. My code is almost identical to WebRTC's implementation. User reported that the application freezes when quitting. The stack trace is: 00 000000e5`783fd058 00007ffb`93a28422 …

Windows development | Windows App SDK
asked 2025-08-07T09:38:32.49+00:00
Derek Lu 0 Reputation points
edited the question 2025-08-07T16:27:43.47+00:00
Rob Caplan - MSFT 6,117 Reputation points Microsoft Employee Moderator
0 answers

How to map the App PFN to its Azure AppId?

Hi, I follow the steps in the documentation especially Step 4 (Map your app's Package Family Name to its Azure AppId) but the email to always fails (undelivered). I need to map my app PFN to its Azure AppId. without this critical step the WNS will not…

Windows development | Windows App SDK
asked 2025-05-18T13:51:59.7233333+00:00
Microlead Software 76 Reputation points
edited a comment 2025-08-07T09:46:55.6866667+00:00
Kiran P 8,230 Reputation points Microsoft External Staff Volunteer Moderator
0 answers

Install a MSIX Sparse Package using ProvisionPackageForAllUsersAsync is not always worked

Hi team, In my code, I use PackageManager.StagePackageByUriAsync and PackageManager.ProvisionPackageForAllUsersAsync to install the package for all users in Win11 machine. The package is a MSIX Sparse Package used for the Modern Context Menu. The…

Windows development | Windows App SDK
asked 2025-08-05T06:38:21.2933333+00:00
Glority 0 Reputation points
edited the question 2025-08-05T06:40:16.6366667+00:00
Glority 0 Reputation points
0 answers

Setting IsDirty property of a class gets Reset

I am reading properties into a Person class: Public Class Person Implements INotifyPropertyChanged Public Property PersonID Public Property IsDirty .... End Class (I've omitted details and other properties that are irrelevant.) The data are read…

Windows development | Windows App SDK
asked 2025-08-02T00:52:03.9+00:00
RogerSchlueter-7899 1,466 Reputation points
commented 2025-08-02T15:46:02.32+00:00
RogerSchlueter-7899 1,466 Reputation points
0 answers

Setting a WebView2 UserAgent isn't updated in the NavigationStarting event

I'm creating a simple C# WinUI3 app that uses WebView2 to connect to OpenStreetMaps. When I set a custom UserAgent on the WebView2.CoreWebView2, it doesn't get reflected in the RequestHeaders in the CoreWebView2NavigationStartingEventArgs object in the…

Windows development | Windows App SDK
asked 2025-07-29T23:23:11.3133333+00:00
Shipwreck Software 0 Reputation points
edited a comment 2025-07-30T06:56:37.0066667+00:00
Viorel 123.6K Reputation points
0 answers

My GUI program's icon isn't display at taskbar

Hello MS team, I am a Korean working as a developer in Korea. Please understand that it may be difficult to read because I'm not good at english T.T I am producing and distributing GUI programs using python and pyqt5 library. This program has even…

Windows development | Windows App SDK
asked 2025-07-29T07:29:06.4266667+00:00
LHW 0 Reputation points
edited the question 2025-07-29T07:41:34.73+00:00
LHW 0 Reputation points
0 answers

Windows Application is taking too much time for rendering a complex UI

Hi, I'm Developing a Windows Desktop Application With WinUI3 (parallelly trying the same with XAML Hosting in Win32 Window) with only cpp (No XAML). Our application requires a complex, multi-windowed interface and must deliver a very fast, responsive…

Windows development | Windows App SDK
asked 2025-07-25T14:57:26.26+00:00
Harshithraj1871 1,706 Reputation points
edited the question 2025-07-28T06:43:58.6866667+00:00
Harshithraj1871 1,706 Reputation points
0 answers

Windows 11 1.7.3 SDK installer not working

I am trying to install this SDK as a complete beginner. When I run the file, it reaches about here: before it closes the window and proceeds to do nothing. I have no experience with installing an SDK, so advanced terminology will need explaining also.

Windows development | Windows App SDK
asked 2025-07-13T16:15:40.1966667+00:00
TheGreatFroge 0 Reputation points
commented 2025-07-19T14:07:03.9033333+00:00
TheGreatFroge 0 Reputation points
0 answers

How to fix Access violation exception thrown from inside winrt/base.h when trying to access CsWinRTComponent from c++/winrt WinUI3 project?

We are working on a large commercial project which used to run on UWP platform (using both c# and c++/CX). Currently, we are migrating to c++/Winrt WinUI3. For some specific reasons, we can't migrate all the modules of our app at one go. If we try to…

Windows development | Windows App SDK
asked 2025-07-03T13:55:50.8533333+00:00
Zahid Hasan 0 Reputation points
commented 2025-07-07T16:37:59.3166667+00:00
Darran Rowe 2,171 Reputation points
1 answer One of the answers was accepted by the question author.

Is rebuilding the entire visual tree per interaction (immediate-mode style) encouraged in WinUI 3?

Hi, I'm working on WinUI3 desktop application in C++ without XAML. I've been experimenting with building UIs in a more "immediate-mode" style using WinUI 3, basically clearing and rebuilding the entire visual tree every time the user interacts…

Windows development | Windows App SDK
asked 2025-07-07T09:04:46.7233333+00:00
Harshithraj1871 1,706 Reputation points
commented 2025-07-08T05:40:54.5266667+00:00
Harshithraj1871 1,706 Reputation points
0 answers

C# mapping array of GUI controls array of data members

I have arrays containing information that needs to be reflected in toggle switches (using radio buttons). Currently it's Boolean (true / false) data. If true radio box is set, if false it's not set. Pretty simple. There's a few more details as if is true…

Windows development | Windows App SDK
asked 2025-07-08T01:00:40.39+00:00
mjeschke 40 Reputation points
0 answers

HOW TO FIX FORMS DESIGNER Sequence contains more than one element

wHAY AM i GETTING THIS ERROR: Sequence contains more than one elementSequence contains more than one elementSequence contains more than one element Sequence contains more than one element

Windows development | Windows App SDK
asked 2025-07-15T23:47:12.7666667+00:00
Lindsey Mundy 0 Reputation points
0 answers

My WinUI 3 App is fetching data/Images in Debug but not in Release or Package.

I have made an Application in WINUI 3, it is working perfectly fine in Debug mode, but it is not fetching the images from the Folder inside my PC or my Assets Folder in Release Mode or Package. What can be the issue ???

Windows development | Windows App SDK
asked 2025-07-16T10:54:53.9866667+00:00
Pawan Kumar 0 Reputation points
2 answers

C# forms rich text box cannot change selected text color

I'm designing a form that populates a rich text box from a text file. Certain lines in the text box have to be of a different style (different color and weight). I looked at numerous examples and think I have coded it correctly but whatever I do the…

Windows development | Windows App SDK
asked 2025-07-16T23:52:20.4966667+00:00
Matthew Jeschke 20 Reputation points
edited an answer 2025-07-17T17:38:26.0033333+00:00
Matthew Jeschke 20 Reputation points
0 answers

Is it possible to have badge on taskbar when the app is closed

It seem App badge is work for PWA only when it opened. But I want to be informed when the app is closed so I know I need to open the app in the taskbar. And I can close it when I don't need to

Windows development | Windows App SDK
asked 2025-07-17T07:00:22.7533333+00:00
Thaina Yu 0 Reputation points
0 answers

I tried to install Windows SDK, It got stuck at 33% now I can't run anything as admin

I tried to install Windows SDK, It got stuck at 33% a couple of times, re-downloaded with the same result, now I can't run anything as admin because I get the error below. I can't even re-run Windows SDK install because it requires admin access. System…

Windows development | Windows App SDK
asked 2025-07-17T23:47:15.66+00:00
Daniel Dumitru 1 Reputation point