private void SelectionChanged(SelectionChangedEventArgs e) { selectedDates = e.DateAdded; if (selectedDates.Count != 0) { this.RoomDetail.SelectedRanges = (selectedDates[0].Date.ToString("MMM dd")) + " - " + (selectedDates[selectedDates.Count - 1].Date.ToString("MMM dd")); IsDropDownOpen = false; } }
private void SelectionChanged(SelectionChangedEventArgs e) { this.selectedDates = e.DateAdded; if (this.selectedDates.Count != 0) { this.RoomDetail.SelectedRanges = this.selectedDates[0].Date.ToString("MMM dd", CultureInfo.CurrentCulture) + " - " + this.selectedDates[this.selectedDates.Count - 1].Date.ToString("MMM dd", CultureInfo.CurrentCulture); this.IsDropDownOpen = false; } }
private void Calendar_SelectionChanged(object sender, Syncfusion.SfCalendar.XForms.SelectionChangedEventArgs e) { CustomDatePicker.Text = e.DateAdded[0].Date.ToString("MM/yy"); CustomDatePicker.IsDropDownOpen = false; }
private void Calendar_SelectionChanged(object sender, Syncfusion.SfCalendar.XForms.SelectionChangedEventArgs e) { var range = e.NewRangeAdded; Console.WriteLine(range.ToList()); }