protected override void OnRender(DrawingContext dc) { var size = RenderSize; new CalendarGridPainter(dc, DisplayDate.FirstDayOnCalendar(), DisplayDate.Month, size, VisualTreeHelper.GetDpi(this).PixelsPerDip, rowHeights).PaintCalendar(); }
private MonthSorter <FrameworkElement> CalendarBarSorter( Func <FrameworkElement, int, int, double, double> target) => new MonthSorter <FrameworkElement>(DisplayDate.FirstDayOnCalendar(), 22.0, i => (CalendarBar)(i.DataContext), target);
public IClickToDayComputer ClickToDayComputer() => new ClickToDayComputer(DisplayDate.FirstDayOnCalendar(), ActualWidth, rowHeights);