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…
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…
Drag-and-drop widget is not not working for Win32 applicaiton in administrative mode
Hello, I'm creating Win32 application with XAML island. I want to allow drag-and-drop of UI element. Below is the code to give an idea of what I'm trying to do. Basically, I want to drag TextBlock and drop on Canvas. This is working as expected for…
Best practices for handling resources (.resw) that need to be formatted
I have resources like Formatted by {0} on x Approach #1 In the backend (.cs file), we create a parameter like so: string FormattedString = string.format(getResource("abc"), userId); and use the FormmatedString directly in the xaml file. …
ColorPicker localization in WinUI 3
Hi, I would like to know, can I somehow change localization of Microsoft.UI.Xaml.Controls.ColorPicker in Runtime, because I noticed if I restart application, it will automatically localize. I want to change tooltips, which are on AlphaSlider, ValueSlider…
Why does WerRegisterAppLocalDump API not work with packaged apps?
Hello, I tried to use the WerRegisterAppLocalDump API in a packaged WinUI 3 app. The function returns HRESULT 0, so success. But if you try to crash the app, no crash dump file is created in any directory of the app data (especially not "relative…
Optimize search through all drives
Hi, I need to implement an efficient search through user's disks. I would really like to search multiple disks in parallel to speed up the process, but at the same time, avoid using too much CPU resources. I've already implemented a directory search…
How to Add Tooltips to Buttons and other UI Components (like - Checkbox, Radio button etc) in Win32 (C++) Desktop Application?
Hi there, I have a Win32 (C++) program on which I want to Add some Tooltips to some of it's UI components like - Button, Checkbox, Radio button. I tried a lot but nothing works. Here is my Demo program : #include <windows.h> struct { int…