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…
Difference between Segoe Fluent Icons and Segoe MDL2 Icons
i am reading MS Docs about Segoe Fluent Icons and Segoe MDL2 Icons, but i am a little confused. for example both docs says that they support PUA E700-E900 PUA EA00-EC00 PUA ED00-EF00 PUA F000-F200 PUA F300-F500 PUA F600-F800 and MDL2 included in…
WinUI3 - Strange top line when maximized window
Hello! When we set ExtendsContentIntoTitleBar to true in the application on Dark Mode, we have strange top line when we click to maximize window. This behavior occurs when the screen/monitor have Resolution 100%, 125% etc. I opened a issue in Microsoft's…
WinUI3 - Title bar without top line when High Contrast Mode
Hello! I need help about issue on WinUI Platform. When we set ExtendsContentIntoTitleBar to true in the MainWindow constructor to create custom TitleBar, we have strange behavior: On High Constrast mode, there's no top line in the window. There are some…
WinUI3 - The "Close Button" hasn't Automation ID for inspection
Hello! Following the https://learn.microsoft.com/en-us/windows/apps/develop/title-bar to create a custom titlebar and when ExtendsContentIntoTitleBar = true is setted, all the titlebar become a InputNonClientPointerSource area. This way is not possible…
How to debug WinUI 3 app?
I started a new project with the WinUI 3 desktop blank app template with the packaging project: I did not do anything with the code. When I start debugging (F5), I get the following System.DllNotFoundException: Could anyone offer a tip on its remedy?
How to make Winui 3 window transparent?
hi, i want to make a transparent window, i used following codes: public static void SetTransparent(Window window, bool isTransparent) { var rgn = NativeMethods.CreateRectRgn(-2, -2, -1, -1); var dmw = new NativeValues.DWM_BLURBEHIND() { …