示例#1
0
 public CellValueDetails(ICalendarCell calendarCell, string nameOfFile)
 {
     cell     = calendarCell ?? throw new ArgumentNullException(nameof(calendarCell) + " can not be null");
     fileName = nameOfFile;
 }
        protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)
        {
            ICalendarCell cell = item as ICalendarCell;

            return(cell != null && cell.State.HasFlag(CalendarCellState.Special) ? SpecialDateTemplate : null);
        }