921 questions with Windows development | Windows App SDK tags
Maui App crashes on Iphone
So my first Maui app works fine in Debug mode but when I deploy it via Testflight it aborts immediately. I'm at a loss at what else I can try. Using Visual Studio 2022 , deploying via a paired mac to IOS 18. The full dump from the crash follows there…
Windows development | Windows App SDK
How can we explicitly register all high-level interaction events for every widget in WinUI3 at once?
Hi, I'm developing a WinUI 3 desktop application using pure C++ (without XAML). My project is quite complex: it will have multiple windows (at least 5), and each window may contain 500 or more widgets. I want to handle high-level events such as pointer…
Windows development | Windows App SDK
Can I install WinRT 15063 on Windows 1607 LTSB?
I have an application that uses a bluetooth device, which has an API (built by a 3rd party) that uses namespaces from Windows SDK build 15063, but has to run on a computer running Windows 10 v1607 LTSB. The API accesses the GattDeviceService class and…
Windows development | Windows App SDK
URGENT : How to use ESIMWATCHER class during development phase.
Hi, I have been working on a product for a client, that requires the usage of ESIMWATCHER class. I know it is a custom capability that needs to be declared in package manifest and then needs to be submitted for approval of custom capability. But all…
Windows development | Windows App SDK
Hello can any one help me to be able to set the data context for the window and page and uaer control for my winui3 app
Hi I am creating a winui3 app and i have a 2 pages and I have a class that contains 2 Bindable properites and i want to set the data context for the 2 pages to be this class to be able to bind this bindable properites to the 2 pages elements. …
Windows development | Windows App SDK
Exception downloading a DLC from Microsoft Store using WinUI 3 app.
I am using the method StoreContext.DownloadAndInstallStorePackagesAsync to download a DLC from Microsoft Store. The documentation describes that the method does not display UI dialog to the user. In an UWP sample, the code below works ok. StoreContext…
Windows development | Windows App SDK
How to set icons for task manager and task bar for packaged WINUI3 Application
I am having problems with setting up icons with task bar and task manager. Task manager - I get the default icon for the first line but the app icon is set ok on the second line With my task bar i get a blue background on my icon instead of transparent.…
Windows development | Windows App SDK
StorageProviderSyncRootManager.Unregister sync root not unregistering on uninstallation
https://learn.microsoft.com/en-us/uwp/api/windows.storage.provider.storageprovidersyncrootmanager.unregister this site states Packaged desktop apps do not need to call this method on uninstall, because the sync root will be automatically unregistered by…
Windows development | Windows App SDK
I can't submit .msix package to MS Stroe anymore?!
Recently, the Windows App SDK was updated to version 1.8, and I upgraded my application to WAS1.8. It generated a new msixbundle bundle, so I submitted a new msixbundle in the new version. Unfortunately, WAS1.8 has a serious bug that can damage my…
Windows development | Windows App SDK
Display a content dialog
In winUI, for some reason, to display a Content Dialog, you need an "xaml root" like this private async void ShowDialog_Click(object sender, RoutedEventArgs e) { ContentDialog dialog = new ContentDialog(); // XamlRoot must be set in…
Windows development | Windows App SDK
Hello I am making a winui3 app and i want to make the navigation view in my app looks like the style that is founded in microsoft store
I want to implement the same style of navigation that is founded in microsoft store to my winui3 app can any one help me. Thanks to everyone
Windows development | Windows App SDK
Convert WPF solution to winui3 + win32
HI Could you please guide me to convert the wpf application to WinUI3 + win32 application. I have wpf solution in hand. now i need to convert that solution to winui3. i have all the setup ready for winui3 development.
Windows development | Windows App SDK
Issue Installing Microsoft.WindowsAppSDK v1.7.3 with net8.0-windows10.0.19041.0 Target Framework
Hello, Please, I need help regarding a compatibility issue. I am currently using the following target framework in my project: <TargetFramework>net8.0-windows10.0.19041.0</TargetFramework> <PropertyGroup…
Windows development | Windows App SDK
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…