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://learn.microsoft.com/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…
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…
search code does not execute (xaml page,pagemodel or MVVM )
I'm trying to add a search bar to my app, but can not get the code to execute. I've placed breakpoints in the pagemodel but they are tripped. Xaml: <SearchBar x:Name="searchBar" HorizontalOptions="Fill" …
How to flatten the XML
Hi have a complex XML structured as per attached below. How can I flatten the XML using XSLT? I have attached the expected sample flatten xml(expected_ouput_flat_oder_xml.xml) based on the complex xml(Order_xml.xml) I provided. I have tried using the…
How to create Custom Window Style in WPF [Drag Window]
Hi To All, How to create Custom Window Style in WPF with Drag-able window
How to view all Visual Tree UI elements of any UI controls, Which is using styles & templates on windows 11 OS environment using VisualUIAVerifyNative tool?
VisualUIAVerifyNative is not displaying few UI elements If TextBox uses style, which has TextBlock as PlaceholderText, then the placeholder textblock UI element is not getting displayed in VisualUIAVerifyNative on windows 11 machine <Style…
UWP Windows.System.Launcher.LaunchUriAsync is not opening correctly in browser when the URI supports opening the link in other uwp app and browser.
Hi I'm using Windows.System.Launcher.LaunchUriAsync to open a URI, I'm prompted with a dialogue when the URI can be opened in other uwp app and browser. If chosen browser, it opens the local path - AppData/Local/Microsoft/Windows/INetCache instead of…
How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?
Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…
is there any roundabouts for design tab in .net maui?
Hello, I'm just started to study .net maui but I stuck on UI design in .net maui project. In WPF project, I could use design tab to correct UI easily. but I can't use that in .net maui. is there anyone or site to teach how to design UI in .net maui…
Unable to make full screen splash in .NET MAUI
How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…
UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices
I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…
MVVM Issue
I have a DataTemplate defined thus: <DataTemplate x:Key="CopyColumnHeaderTemplate"> <StackPanel Orientation="Horizontal"> <Label Content="{Binding}"/> <CheckBox…
UWP app flickering on ARM PC
Hi everyone. I have an UWP application and I'm running on a ARM PC. When I open a customized content dialog the screen starts blinking. Unfortunately, I cannot show the application nor the code, but do you guys know some cases that an ARM PC blinks…
Why do i get this error
When i start debugging and i press a NavigationMenuItem, i get this error (See Screenshot). the NavigationPages are in the folder NavigationMenu. Does anyone know how to fix this My code is MainPage.xaml …