Relative Content

Tag Archive for c#wpf

XAML Slider size

I’m building a C#/WPF application, and using sliders. The sliders do not change size with their height parameter. The slider is always against the top or left of the defined height/width.

XAML Slider size

I’m building a C#/WPF application, and using sliders. The sliders do not change size with their height parameter. The slider is always against the top or left of the defined height/width.

How to customize WPF DataGridTextColumn to only accept time values

I want to achieve that in a DataGrid a column displays TimeSpan values as hh:mm and users are only able to input values in such a format. I did this with a TextBox some time ago by implementing a user control encapsulating the TextBox and a IValueConverter which takes care of value conversion.