WinRTXamlToolkit.Controls.Calendar.ReplaceSelectedDatesCollection C# (CSharp) Method

ReplaceSelectedDatesCollection() public method

public ReplaceSelectedDatesCollection ( ObservableCollection selectedDates ) : void
selectedDates ObservableCollection
return void
        public void ReplaceSelectedDatesCollection(ObservableCollection<DateTime> selectedDates)
        {
            //Replace the existing selected dates collection with a new user provided collection
            var sdc = new SelectedDatesCollection(this, selectedDates);
            this.SelectedDates = sdc;
            //Update the control to display changes
            this.UpdateMonths();
        }