Points displaying wrong
Hello I am sorry or not putting the framework correctly, but I cannot find WinUI The problem is that in the canvas my points are displaying correctly but when I go into guided mode to select my points they dont correspond I don't have point 1,…
Canvas math problem
I have this Canvas that is 100 mm x 100 mm the problem is that when I draw a line es calculating bad (or I'm the bad one) if I select 0,0 and 18,18. I shod have but for some reason I get this is the code private readonly…
How can you unhide a Button inside a UserControl when a Page loads into a Frame on the MainWindow?
UserControl: <UserControl x:Class="Scores.Views.UserControls.MenuBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" …
WPF Validation and Style Issue
Hi All, I have a textbox on screen with ValidationRule for required field validation: <TextBox Grid.Row="1" Grid.Column="1" Name="txtFirstName" Margin="10,10,5,5"…
two usercontrols with different dependency properties have the same content
i have a usercontrol called filtercontrol that's in a in a itemscontrol. the itemscontrol ist bound to a observablecollection. the usercontrol has a dependency property that's set a guid. wenn the guid is set the usercontrol gets data from a source to…
WPF Cannot see SelectedItem in TreeView
I'm using WPF .Net 9.0, I cannot see the SelectedItem element of the TreeView. Anybody would know why ?
NET Core 3.1 app clickonce publish include a folder(from library project)
WPF Prism desktop project sln module folder data.txt module.cs app app.cs app references module module is a .dll project app is .exe project <Content Include="folder\data.txt"> …
How to Detect Stylus Pen Sides (Pen Tip vs. Eraser) in WPF (C#)
Hello, I’m developing a WPF application in C# that interacts with a stylus pen on a Windows device. I need to detect which side of the stylus is being used—whether it’s the pen tip or the eraser side. Could someone guide me on how to achieve this…
How can I see why a project cannot use "Application Timeline"
I have two startup projects in a solution - both are WPF applications that produce an .exe output tied to an xaml application. I would like to use the Application Timeline feature to analyze my app and for one project I can select the feature, but for…
Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory
Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory I have Webview2 control in WPF Window as shown below in webViewStrings.xaml file <Window…
OutOfMemory exception from System.Windows.Media.Composition.DUCE.Channel.BeginCommand
We're running a WPF application that renders 3d graphics into a viewport, but sometimes we get an OutOfMemoryException with the following stack trace: 2025-02-19 03:39:07,028+11:00 FATAL An unhandled exception was caught System.OutOfMemoryException:…

Issue with Reset Password Functionality on Company Account
The reset password window does not respond when attempting to change the password for an account with a company taken over by Totalenergies. I was previously with an electric car charging company, paying a £4 monthly fee and using my bank account for…
Win11 - User32.GetRawInputData fails to read data since 24H2
Background: We are using HwndHost class to host child window inside WPF application. From WndProc method we are forwarding input messages (WM_INPUT) to child process/window using User32.SendMessage. The child process/window WndProc method then receives…
The keyboard inputs are not updating correctly in the hosted WinForms application
Hi, We are encountering an issue in a WPF application hosted within a WinForms application. The keyboard event is triggered correctly, but the values are not updating properly in the UI. Here’s the setup: Create a WinForms application with a user…
How to Save a WPF DataGrid Back to Database after Editing
Hi, I am wondering if theirs a way to save a updated Line from WPF DataGrid back to Database . I don't Know the best way to do this without going back to WinForms Apps. I would like to use WPF, any help would be appreciated.
Playing Video in WPF
Description : I have a WPF Project with one Main Window under main window multiple tab item each tab item i binded with user control(Separate xaml)In user control i tried to play one video using MediaElement control... Project Setup: Project that target…
How to get the current page number or check if PDF viewer is on the Last page of a PDF in WPF Webview2 control?
I am working on a WPF application where I use Webview2 to display PDF files. I rely on Edge's built in PDF rendering mechanism and am not using any external PDF libraries. I've successfully loaded the PDF using the following…
WPF UI Not Rendering in Custom Credential Provider Within UAC
I am developing a custom Credential Provider where I launch a WPF application as a Class Library. The WPF window is supposed to display UI elements like buttons and textboxes. However, when the Credential Provider loads and the WPF window appears inside…
AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF
Hello, I am working on a WPF window which supports multiple frameworks <TargetFrameworks>net8.0-windows;net48</TargetFrameworks> i have a media element in a window written <MediaElement x:Name="Video" …
Is my technology stack suitable for a startup
I have developed a startup. My technology stack: C#, WPF, Postgresql, Dapper. Is this stack optimal for a startup? I listened to the opinions of previous developers and now I doubt it. Perhaps the problem is that the program does not work on other…

