예제 #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();
        }
예제 #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);
예제 #3
0
 public IClickToDayComputer ClickToDayComputer() =>
 new ClickToDayComputer(DisplayDate.FirstDayOnCalendar(), ActualWidth, rowHeights);