Relative Content

Tag Archive for c#wpf

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.

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.