Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
13 views

Validation gets lost on tab change

I am using a tab control to group different input fields like text boxes. I am validating the user input of those text boxes via IDataErrorInfo in my view model. Now, when the user input is not valid ...
J. Meyer's user avatar
-1 votes
1 answer
33 views

How does the `CalculateButton_Click` method validate and update `HourlyEmployee` and `CommissionEmployee` properties, and handle input errors? [closed]

I need to understand how the CalculateButton_Click method in my WPF application handles input validation and updates for HourlyEmployee and CommissionEmployee objects. Specifically, how does it check ...
Shivank Panchhi's user avatar
-1 votes
0 answers
26 views

My WPF app is not displaying text correctly in some datagrids [closed]

This is the UI on a windows 10 machine This is the UI on my IDE and other PCs As you can see the text is missing and the context menu isn't openning I tried reinstalling graphics drivers, updating ....
Alexandro Cardona's user avatar
-3 votes
1 answer
63 views

How to implement multiple buttons with same behaviors? [I need advice] [closed]

I am learning WPF and MVVM, my goal is to create a serial communication using SerialPort and update the UI to inform user whats happening. So program is communicating with cards(max 3) and each card ...
obtein's user avatar
  • 7
0 votes
1 answer
45 views

WPF Dynamically add columns using a pre-defined DataTemplate

I have a DataTemplate defined in the resources area of my custom WPF UserControl which renders a bunch of colored squares for a bunch of "flags". The goal is to dynamically add columns to ...
Vlad's user avatar
  • 1,909
0 votes
0 answers
24 views

Wpf frame navigation automatically makes the path smaller

public void frameNavigation(string url) { string path = ""; if (url == "startup") { path = "Pages/Optimizations/...
Yahya İsar CESUR's user avatar
0 votes
2 answers
74 views

How to copy and paste in wpf richtextbox containing runs and inlineUICOntainer?

I have created a RichTextBox in wpf containing the below content <RichTextBox x:Name="RichTextBox" IsDocumentEnabled="True" AutoWordSelection="...
why stuff works's user avatar
0 votes
2 answers
47 views

Measuring WPF TextBox gives zero size

I'm trying to calculate the height of an WPF textbox. The code below does work for TextBlock, but returns a empty size for TextBox. public partial class MainWindow : Window { public MainWindow() ...
tpol's user avatar
  • 952
-2 votes
1 answer
87 views

Can't resolve System.Windows.Control.Image from being created instead of System.Drawing.Image

I'm working on moving a C# program into a WPF application and in order to export files from records I need to use the following code: // Construct _imgfiles from the records string _imgfile = ...
Esai's user avatar
  • 1
0 votes
0 answers
24 views

WPF Frame Navigation: Preventing Duplicate Instances in Navigation History

In my WPF application, I'm using a Frame for navigation between pages. The issue I'm encountering is that whenever I navigate to a page that is already open, a new instance of that page is added to ...
Oriol Tomàs Lara's user avatar
0 votes
1 answer
84 views

How does ObservableCollection/INotifyPropertyChange work when object is changed

I have a situation where in one view model some properties on an object are updated. In another view model, I subscribe to a message and then update a collection with this new object, e.g.: ...
WSC's user avatar
  • 978
0 votes
1 answer
63 views

WPF program sometimes has touch failure, but the mouse can click

WPF program uses a touch-screen all-in-one machine, so you can click on the screen or click with the mouse. When you start the program, everything is normal. After using it for a while, there is a ...
user24744521's user avatar
-1 votes
0 answers
96 views

The checkboxes that I created in listbox don't exist in the C# code [closed]

I created multiple checkboxes inside a listbox, but when I try to use these checkboxes in the C# code, it can't find them, but a checkbox outside the listbox is found normally. This is the XAML of the ...
Mostafa Sedik's user avatar
0 votes
0 answers
26 views

OxyPlot graph not always displayed in WPF app

I have some buttons in my app, which are redirecting to view with OxyPlot graph. After updating OxyPlot version, graph doesn't appear. Only after reopening the view it becomes visible. However, this ...
Oleksa Kachmarskyi's user avatar
1 vote
0 answers
44 views

How can I apply non-affine transformations to 2D framework elements in WPF?

Historically, WPF is not able to support 2D non-affine transformations out of the box. Typical solutions require setting up a 3D scene. Of course, I'm trying to avoid creating a 3D scene in my ...
Cody Hubbard's user avatar

15 30 50 per page
1
2 3 4 5
1059