Dialog box before launching of application in winui3 c++/winrt
I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…
How to know whether the snap applied in windows 11 windows. Is there any API.
Is there a method or any API to tell if snap is enabled or disabled in Windows 11? Please answer if there is any other way.
Understanding AppShell.xaml's structure
I'm building my first .NET MAUI app and I sort of understand what's going on in AppShell.xaml, but not really. I'm guessing I don't have them "structured" properly for navigation to go back and forth between views. My app is fairly straight…
An exception is given when trying to manipulate UI when the packageCatalogUninstalling event is triggered WinUI
Hello! I'm testing an application that uses PackageCatalog.Uninstalling event and i would like to change the UI when this event is triggered but when i try to do it an exception is given. I also tried with a dispatcher but received another error
After migrating to VB.NET Core 9.0 from 8.0, I am getting error messages on menu bindings
After migrating from version 8.0 to version 9.0, I am getting error messages related to the binding of menu items. I am working with Visual Studio 17.12.3 and .NET Core 9.0.101 on a Windows 11 (23H2) machine. Further down in the XAML code, I have the…
How to get DataGrid object of TabControl.ContentTemplate
Dear all, I have a control using ContentTemplate and i would like to binding the Visibility properties with viewModel but that error 'Cannot find governing FrameworkElement or FrameworkContentElement for target element'. This is control in xaml: …
Struggling to change the combobox mouseover effect on a dark background
Hi, hope someone can help, I tried to follow some answers here but I am not able to change the ugly default mouse over effect on my combobox. I want to keep the same style as before hovering with the mouse. I am really struggling with it. Below my…
.NET MAUI QueryProperty: Data not passed to another page
I'm developing a drawing application using .NET MAUI and Firestore. On the HomePage, I display a list of existing drawings. When I select one, I want to navigate to the DrawPage and open the selected drawing for modification. However, the DrawingID…
System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI
I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…
Editor controls in grid don't resize correctly after grid and row compressed to zero width and expanded back
Editor controls in a 3x3 grid don't resize correctly after compressing one of the rows and columns to 0 width and height and expanding it back to normal size. The bug is only present on the windows platform using Editor controls. Resizing works correctly…
Sometimes click something in The WebView2 Page will open a new Microsoft Edge Window,could we show it in the Webview2 replace open a new window?
With local file WebView2: var env = await CoreWebView2Environment.CreateAsync(WebViewRuntimeFolder, DataFolder, opt)); await webView.EnsureCoreWebView2Async(env); I want whatever you click in the WebView2,The requested showed in the WebView2 Element,…
How to change tabbar style (font and size and ...)
i want change the style of tabbar menu item font and size and color how to do it ? AppShell <TabBar > <Tab Title="پروفایل" > <Tab.Icon> <FontImageSource FontFamily="MDReg"…
Double tapping Editor control locks app when deployed to iOS
Double tapping the Editor locks the app when deployed to iOS. This occurs for both net 8 and 9. Entry control works well and does not lock up the app. I added Editor and Entry controls to the demo Maui app as below. Am I missing a setting? Any known…
How fix System.ArgumentNullException
L'erreur complet : System.ArgumentNullException HResult=0x80004003 Message=Value cannot be null. Arg_ParamName_Name Source=Microsoft.EntityFrameworkCore Arborescence des appels de procédure : à…
High RAM Usage with Custom Splash Screen in WPF (Code-Behind, .NET Core 6) - How to Reduce Memory Consumption?
I'm working on a WPF application using .NET Core 6 (Code-Behind, no MVVM) in Visual Studio 2022 on Windows 10. I've created a customized splash screen that displays a GIF on startup. The splash screen closes once the app has fully loaded. My problem is…
Crash issue from Microsoft official Win32 C++ custom WinRT XAML control tutorial
Build was ok, but got a crash after following the official Microsoft official Win32 custom WinRT XAML control tutorial https://zcusa.951200.xyz/en-us/windows/apps/desktop/modernize/xaml-islands/host-custom-control-with-xaml-islands-cpp: Clicking…
[UWP] Change Lottie Animation Color / Theme Dynamically
I have used lottie json animation in xaml uwp using "CommunityToolkit.WinUI.Lottie" and "AnimatedVisualPlayer". But for dark theme I can not see the lottie animation as the color is fixed. How can we dynamically change color of…
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 Extend TextBox's Text Property to Show Binding Value in the Properties Window without XAML Updates?
I am working with WPF and trying to extend the functionality of a Text property in the Properties in the design mode in the TextBox, but I’m running into limitations with the Text property. Here’s what I want to achieve: In WPF, when Text has Binding,…
WPF TextBox Style Customization: CaretBrush Disappeared After Trigger Setup
Seeking assistance with customizing the style properties of a TextBox in WPF: Background: MouseOver #505050 & not MouseOver #303030 Foreground: #FFFFFF BorderBrush: MouseOver #868686 & not MouseOver #666666 CaretBrush Despite setting up…