private FrameworkElement CreateView() { var scheduleView = new ScheduleView() { ViewModel = _scheduleViewModel }; scheduleView.ConfigureForExport(); // For some reason there's a black bar at the bottom... // Probably related to the XAML deferred loading (causing that 15 pixel divider bar to consume space)... // So we just accomodate for it by cropping out 15 px from the bottom var clippedView = new Border() { Child = scheduleView, Margin = new Thickness(0, 0, 0, -15) }; return(clippedView); }