J
J
Jaguar_sea2016-07-04 08:03:10
WPF
Jaguar_sea, 2016-07-04 08:03:10

What are the controls in WPF for displaying data in DateTime format?

I tried to use the WPF Toolkit DateTimePicker, but when I try to get the BindingExpression and update the source data, the value ValuePropertyis lost somewhere.

BindingExpression expression = Control.GetBindingExpression(DateTimePicker.ValueProperty);

Then I add this one BindingExpressionto others in List<BindingExpression>, well, I update the source:
foreach (var exp in expressions)
{
    exp.UpdateSource();
}

As a result, there is no source data.
Actually, with native controls, in particular with TextBox, there are no such problems.
From here and two questions:
How to solve the problem with BindingExpression in WPF Toolkit DateTimePicker?
What are the free controls in WPF for displaying data in DateTime format?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question