Exemple #1
0
        protected override void OnRender(DrawingContext dc)
        {
            var size = RenderSize;

            new CalendarGridPainter(dc, DisplayDate.FirstDayOnCalendar(), DisplayDate.Month, size,
                                    VisualTreeHelper.GetDpi(this).PixelsPerDip, rowHeights).PaintCalendar();
        }
Exemple #2
0
 private MonthSorter <FrameworkElement> CalendarBarSorter(
     Func <FrameworkElement, int, int, double, double> target) =>
 new MonthSorter <FrameworkElement>(DisplayDate.FirstDayOnCalendar(), 22.0,
                                    i => (CalendarBar)(i.DataContext), target);
Exemple #3
0
 public IClickToDayComputer ClickToDayComputer() =>
 new ClickToDayComputer(DisplayDate.FirstDayOnCalendar(), ActualWidth, rowHeights);