WinUI 3 - How to Retrieve ActivatedEventArgs Multiple Times?
The documentation states that AppInstance.GetActivatedEventArgs this method will only return the arguments the first time it is called in an app. If a packed single-instanced WinUI 3 app is activated from a protocol multiple times, what approach can…
Drag and drop in Win UI
Hi, I'm doing drag and drop in Win UI application, but I have a problem. In drag and drop there is only Data.SetStorageItems method. It accepts an IStorageItem with which I have no access to hidden files and shortcuts (only using file picker, but in my…
CoreWebView2.NavigateToString(String) method fails to load an HTML page
I am using an instance of WebView2 class to display some HTML content in a UI panel for a VS 2022 extension. I can retrieve the HTML content that I want to display in the WebView2 control as a string, and then I am trying to use…
How to set the app window height and width on WinUI3?
I wanted to set the width of the app to cover the available width of the display, and wanted to increase the apps height when a function was invoked.
WinUI 3 NavigationService not navigating to ShellPage after successful login
I'm developing a WinUI 3 app using Template Studio with a Navigation Bar. The INavigationService has a NavigateTo method that I can use to navigate between custom pages like Login and SignUp. However, I'm having an issue where I can't navigate to…
How to leave a certain distance between the right page content of the NavigationView and the Titlebar
This is my winui3 application's NavigationView And this is the winui3 application created by Temlate Studio's NavigationView
Use otf/ tff for font in WinUI
Is it possible to use these files for fonts in C++. I've tried the c# examples but it doesn't seem to work?! https://stackoverflow.com/questions/70371593/how-do-i-change-the-default-font-of-my-winui-application
APPX0101 error when packaging a WinUI MAUI app even though Azure Key Vault signing is configured
I have a WinUI app and I am trying to configure package signing with a certificate in our Azure Key Vault. I right-clicked the project, selected "Package and Publish" and picked a certificate from our Azure Key Vault. I know signing works in…
Issues with singing up with Microsoft Appsource
I have this issue. When I try to sign up for Microsoft Appsource, it requires me to have a domain worksite email address, and not a personal email address. I don't have a worksite email address, but I have a personal email address instead. I want to…
How to build an application correctly in the WinUI3 project template?
I am working in the Blank App, Packaged (WinUI 3 in Desktop). When compiling and launching a new project in Visual Studio using the keyboard shortcut "Ctrl + F5", the application opens without problems. However, when building the project and…
How to use Region (Win GDI) APIs on top of Xaml Island window
Hello, I want to draw different shapes in WinRT/C++ application using Region APIs. It is Windows Desktop Application with Xaml Island. I'm creating child window of the Xaml Island window, and then trying to use Region APIs to draw rectangle on this…
How to create Pie-chart and Bar-chart in WinRT/C++ application
Hello, I'm working on Windows Desktop Application with Xaml Island. I want to create and show charts (Pie chart and Bar chart) in my application. I'm not able to find any strait forward way to do this. Can you give some suggestion on…
How do I receive the download progress of a Microsoft Store package? | WinUI/UWP
Hi. I'm installing a package from the Microsoft Store from my WinUI application, but I'd like to see the download progress. I have the following code on Constructor: PackageCatalog packageCatalog => PackageCatalog.OpenForCurrentUser(); And when I…
Can we use both WinUI3 controls and Win32 controls in a WinUI3 application?
Hi, I'm using WinUI3 application, As we can extract HWND from WinUI3 window, and we can attach Window Proc with SetWindowSubclass and manage WM_* messages, I was wondering if we can use Win32 controls and WinUI3 controls at the same time. I was…
Windows SDK versions are not clear for me
Hello! On the https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ page the latest SDK version is 10.0.26100, however Wikipedia tells that the stable release is 10.0.22621.0 (which is on the SDK archive page). Maybe the wiki page is not…
How to use Toast notifications in Windows App SDK 1.4?
I want to use Toast notifications in Windows App SDK 1.4 (below) but I don't know how to create them, most of the tutorial codes I've seen on the internet are not the same, and although they all work, they have the same feature: "Creates a new…
How can I check for updates from within a Windows app in .NET MAUI?
I am developing a windows application using .NET MAUI planform. I am deploying it to the user using the appinstaller file. I configured the appinstaller file to check for update in the background every 8 hour once. What I also need is to check for update…
Secure Storage of Data in a WinUI Application
How can I securely store data in Windows App SDK when other applications can access it? DPAPI doesn't offer sufficient protection and adding entropy is not enough. Where can I store the entropy? Can someone explain the mechanism for secure data storage…
WinUI 3 application crashes at App.g.i.cs
I am trying to create a WinUI 3 Application in C# and my application keeps crashing at App.g.i.cs #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { …
Can ssl certificates be used for code signing?
Can SSL certificates be used for code signing? Thanks a lot.