WP8.1 DatePicker binding – value never gets updated (bug?)

XAML code:

<DatePicker Date="{Binding DateTimeOffsetTest}"></DatePicker> 

DateTimeOffsetTest is just a simple property in ViewModel that implements a PropertyChanged.

Problem is that DatePicker behaves like it's OneTime binding. If I update the property in ViewModel, DatePicker won't update. I've tried setting the mode to OneWay and change the UpdateSourceTrigger but it doesn't work.

Does anyone have a solution?

by Millkovic via /r/csharp

Leave a Reply