How to implement validation only once for binding and commands?
In WPF, I am thinking how to implement validation, only once, and to be use for commands and for the view model to can warn to the user the problem.
Trigger another property update when a collection is modified
In my C# / WPF application, I have a class with several properties:
Can’t close window from other thread: “{“The calling thread cannot access this object because a different thread owns it.”}”
i built a Custom Splash Screen using the BackgroundWorker, everything is working fine until i want to close the Splash Screen window.
I’m getting this error: “The calling thread cannot access this object because a different thread owns it.”
Basically i want to show the splash screen when loading data and close it after, and show the mainwindow.
WPF DataGridComboBoxColumn getting
I have some problems with DataGridComboBoxColumn. The first issue is that I do not see “default” value after loading data grid and I have to select it manualy from list. But when I select value it’s correctly saved in my log file. The second issue is when I want to display this data from saved log file.
In the Obersvable collection it’s correctly parsed but in DataGridComboBoxColumn value is not shown.
Will publishing WPF application as self-contained .NET 8 app run on WIndows 7?
I want to publish my .NET 8 desktop application (WPF) as self-contained app to run on variety of windows versions, specially on windows 7. Can self-contaned .NET 8 run on all windows versions while there is no .NET 8 runtime installed on them?
Line Clip or Extend To Fit Polygon in same perspective
I am having a polygon and line. Line start and end points are touches the polygon edges. If I add a different offset point to polygon points, the line should extend or shorten with same perspective.
How to get text to align between controls in WPF?
I’m fairly new to WPF and have come from Winforms. I’m trying to get two controls, which are left-right of each other, positioned vertically so that the base-line of the text in one is at the same level as the other. They are a button and a checkbox. The checkbox is to the right of the button. They look correct at designtime, but at runtime the checkbox has moved up a few pixels. The two controls are in a horizontally orientated stackpanel.
Wpf DataGrid SelectedIndex returns the same value after cell edited
in the selection changed event of a data grid i selected row index
streamgeometry information was lost when Canvas deep copy
I was created a canvas object and i want Clone this canvas to another. i use the following code.
ComboBox SelectedItem filled with enum binding to a property
I have a combobox that is filled using the value of an enum.