CalendarDatePicker - TwoWay binding?
See original GitHub issueIs your feature request related to a problem? Please describe. I am not sure if this is a bug / a feature request or just by design, so I let you judge.
If you bind to SelectedDate you always have to specify that the binding needs to be TwoWay, in order to update your ViewModel. I almost always forget to set this, so I end up wondering whats going on until I remember to update my binding.
<CalendarDatePicker SelectedDate="{Binding MyDate, Mode=TwoWay}" />
Describe the solution you’d like
IMO SelectedDate should bind TwoWay by default
Describe alternatives you’ve considered Keep it was it is, and just remember it better ^^
Additional context I think in WPF it is also TwoWay. I can send a PR if you find this should be implemented. If not, please close this as by design.
Happy coding Tim
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)

Top Related StackOverflow Question
@robloo but it’s CalendarDatePicker. In most scenarios it actually expected to do changes to their view models.
I confirmed you are correct that WPF defaults to TwoWay for all relant properties.
https://github.com/dotnet/wpf/blob/7169fadf191f2348d266b874e7a8da844a21ce98/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs#L416