Exemplo n.º 1
0
 /// <summary>
 ///     Handles the <see cref="E:ElementPropertyChanged" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.ComponentModel.PropertyChangedEventArgs" /> instance containing the event data.</param>
 protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     base.OnElementPropertyChanged(sender, e);
     ProtectFromEventCycle(() =>
     {
         if (e.PropertyName == ECalendarView.DisplayedMonthProperty.PropertyName)
         {
             SetDisplayedMonth(Element.DisplayedMonth);
         }
         if (e.PropertyName == ECalendarView.HighlightedDaysProperty.PropertyName)
         {
             //_picker.Init(Element.MinDate, Element.MaxDate, Element.HighlightedDaysOfWeek);
             _picker.HighlightDates(Element.HighlightedDays);
             SetDisplayedMonth(Element.DisplayedMonth);
         }
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Withes the highlighted dates.
 /// </summary>
 /// <param name="dates">The dates.</param>
 /// <returns>FluentInitializer.</returns>
 public EFluentInitializer WithHighlightedDates(ICollection <DateTime> dates)
 {
     _calendar.HighlightDates(dates);
     return(this);
 }