I have a calendar defined like so:
<Calendar Name="calendarA" SelectionMode="MultipleRange"/>
and a list box which displays the selected dates on the calendar:
<ListBox x:Name="dateListBox" ItemSource="{Binding ElementName=calendarA, Path=SelectedDates}" SelectionMode="Extended"/>
Now, this is all on the view, what I'd like to do is to somehow copy the selected dates either from the calendar or from the listbox to a property or ObservableCollection in my viewmodel, but I'm a little lost, how do I go about this? I didn't want to use code-behind