OOP Background Task with SelfContained WinUI/WinAppSDK desktop app doesn't run if dotnet is not installed
I have a beta version available of my WinUI/WinAppSDK desktop app for a restricted set of users via Microsoft Store Package Flights. One of the users reports that none of the 3 background tasks in the app are executed. The 3 type of tasks are: a 15…
How to fix System.AccessViolationException?
Hi, I have a simple WinUI application to try MultiBinding. When I run debug the application, it throws error System.AccessViolationException. As I researched, an AccessViolationException is an exception typically raised when your process tries to…
Does PointerEntered work for WinUI?
I have tried all kinds of things to make PointerEntered work to no avail. Xaml: <Border BorderThickness="5" BorderBrush="Yellow" Width="300" Height="300" …
How to change Mica TintColor which does support Dark/Light Theme?
Hi, i am trying to use Mica with Custom TintColor, i ended with using this helper class: internal class MicaSystemBackdrop : MicaBackdrop { public Window window; public WindowsSystemDispatcherQueueHelper m_wsdqHelper; public MicaController…
Do you know of a solution for the problem where the App Installer Launch button does not work when reinstalling a previous version of a .Net Freamwork App packaged using MSIX?
I have packaged a .Net Framework 4.6.1 application using the command line to create a MSIX package. The application installs and updates properly. The situation is that if version 2 is installed, and I click the version 1 MSIX package, reinstall of…
WinRT : Why there is no need of un-initializing the apartment after initializing it?
Hi, I'm building winui3 desktop app in pure c++ without XAML files. In the beginning, I'm initializing the thread with Single Threaded Apartment with init_apartment . But I did not find any documentation that says we need to un initialize it. Why don't…
Recommendations To Learn To Program Desktop Apps
I would like to lean how to program apps that run on the Windows 11 platform. I need recommendations for books that will take me through the principles and practices of building a Windows program. I have written C/C++ and Fortran programs that run from…
Migrate UWP App to MAUI Windows: Error after update with MSIX
I currently have a Xamarin Forms UWP App in the Microsoft Store. In the next months I want to update it to MAUI. For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin…
WinUI DataGrid (CommunityToolkit.WinUI.UI.Controls) - Resize of height is not working when user shrink or expand column
<ctWinUI:DataGrid x:Name="DataGrid" AutoGenerateColumns="False" CanUserSortColumns="True" GridLinesVisibility="All" …
How to add keyboard shortcut of OEM keys in Keyboard Accelerators in WinUI 3, XAML
Hi. I am creating an app in WinUI 3, C# Xaml. In the app I have a button which has the "+" symbol. The Keyboard shortcut for the button is only showing the numeric pad "+" key. How do I add a shortcut of the shift key and the OEM plus…
How to use ActiveX control into WinUI3 main window
I am developing WinUI3 app and want to use the activeX control created by my colleague that shows 3D object. But I am not sure how to embed the activeX control into WinUI3 control. (e.g. canvas or image, etc...). Is there the way to realize it? Thank…
How do I Maximize the Windows Screen in a .NET MAUI App
I want my .NET Maui app to run as a Mazimized window. How do I accomplish this? I tried using this code but it wants a DLLImport code? Microsoft.Maui.Handlers.WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (handler, view) => { #if…
How to Move Window to Left or Right side of screen in winui 3?
i want to create a window in Left or Right side of a screen in winui 3 i used following codes: var width = DisplayArea.Primary.WorkArea.Width; var height = DisplayArea.Primary.WorkArea.Height; var x = DisplayArea.Primary.WorkArea.X; var y =…
how to port DrawingBrush stuff from WPF to WinUI 3?
I am trying to port a WPF control to WinUI.Most of the work is done and only the main work remains. The goal is to create a watermark control. i dont know how to port this code into winui, there is no DrawingBrush class: there is some error…
Trouble in using FileOpenPicker
"Invalid window handle. (0x80070578)" exception will through if FileOpenPicker is used the same way as for UWP. A remedy needs to be used. FileOpenPicker picker = new FileOpenPicker() { SuggestedStartLocation =…
Can I copy an added folder in Windows Application Packaging Project to Local via Package.appxmanifest?
I'm thinking about saving a folder with HTML files containing the manual locally so that it can be accessed via the app. The folder should be added to the Windows Application Packaging Project and then copied during installation. Can I define this via…
winui 3 FindAncestor
Hello: In Wpf , The below code in a page/usercontrol will get the property value from MainWindow Datacontext. <TextBlock Text="{Binding DataContext.Arr[2],RelativeSource={RelativeSource Mode=FindAncestor,…
WinUI 3: ToggleSwitch Height and internal padding sizing
I have been having issues resizing the WinUI 3 Toggleswitch. Changing the height & minheight to anything too small makes the internal content off center (and cut off). There's no way to vertically align the content to top or center. There's no way to…
Where exactly can I find api-ms-win-core-console-l3-2-0.dll?
I've been looking left and right, here and there for the past 2 days trying to isolate/locate those dll files. But I cannot find it anywhere, none of the SDK have it anymore. I am trying to compile an app to work in Windows 7 environment (and possibility…
Generic.xaml - x:Bind with Converter binding
I have tried to create my own templated control that should work on x:Bind. By reading the offical document, I have created a code-behind Generic.xaml.cs file and referred it in App.xaml. When I use a converter inside my control, then it throws null…