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.
How do I access DWriteCore from a C# managed application?
How do I access DWriteCore from a C# managed application? I'm using .Net5 WindowsAppSDK Desktop. I need to get a SYSTEM and CUSTOM FONT COLLECTION LIST using DWriteCore, but I need to do so from a C# App using WindowsAppSDK, which says it includes…
How to set the a transparent background for TransportControls in MediaPlayerElement control in WinUI3
In UWP, for the MediaPlayerElement control, the MediaTransportControls background is transparent. But not in WinUI3, so how to set it to transparent?
Taskbar Color Reverts When Changing Color Using SetWindowCompositionAttribute in WinUI3
Hi, I am encountering an issue with the taskbar color on Windows. When I change the taskbar color using the SetWindowCompositionAttribute method, the color initially changes as expected. However, as soon as I click the 'Start' button, the taskbar color…
In winui 3, how to bind to a dependency property of my UserControl, inside a DataTemplate of a contained ItemsControl?
So I have a UserControl, which contains an ItemsControl. I need the controls defined inside the DataTemplate to bind to a dependency property in my UserControl. Let's say my UserControl has a dependency property MyProp. I want to do the following in my…
How to binding ViewModel's SearchText variable to the DataGrid Cell as a converter parameter?
I've an other question: How to binding ViewModel's SearchText variable to the DataGrid Cell as a converter parameter. I'm using a converter to change ViewModel's list's field name: "content" to highlightedText textBlock. but the Convert method…
how to highlight searched text in DataGrid Cells on WinUI 3 application. Or how to use RichTextBlock in the Datagrid cell?
how to highlight searched text in DataGrid Cells on WinUI 3 application. Or how to use RichTextBlock in the Datagrid cell? I'm writing a C# WinUI 3 Desktop App with DataGrid. And I want to use rich text in the DataGird cell to highlight the searched…
XAML code autocomplete (Intellisense) is disabled/ greyed out and can't be enabled
Hard case here: After i installed a WinUI Preview version the WinUI Templates disappeared after weeks of installation (it's a known bug but i can't find the link anymore). Nothing helped but a reinstallation with previous removal of all VS…
Issue with BitmapEncoder and BitmapDecoder in Windows.Graphics.Imaging
Hi everyone, I'm encountering an error while working with the Windows.Graphics.Imaging namespace. Here's the relevant code snippet: using (Windows.Storage.Streams.InMemoryRandomAccessStream stream = new…
Blazor Hybrid (MAUI) - Customize TitleBar
This is a follow-up to a previous question. I now see that the Title Bar customization API only works for Windows 11 (AppWindow.TitleBar is null on <Windows 11). For this question, keep in mind that I am only asking about the Title Bar when…