private void PrintReport(object sender, MouseButtonEventArgs e) { FrameworkElement rpt = (FrameworkElement)LayoutRoot; PrintClass.Print(ref rpt); }