911 questions with Windows development | Windows App SDK tags
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
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
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
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


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

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