protected override void PreparetPrintContent()
 {
     if (firstPage == null)
     {
         vm = (PresenterVM)VM;
         var ht = 400;// itemListView.ActualHeight;
         var wd = 300; // itemListView.ActualWidth;
         var imgUrl = string.Format(url, vm.CurrentQuestion.Id, wd, ht);
         firstPage = new ReportPrint() { ImageUrl = imgUrl };
     }
     PrintingRoot.Children.Add(firstPage);
     PrintingRoot.InvalidateMeasure();
     PrintingRoot.UpdateLayout();
 }
Esempio n. 2
0
 protected override void PreparetPrintContent()
 {
     if (firstPage == null)
     {
         vm = (PresenterVM)VM;
         var ht     = 400; // itemListView.ActualHeight;
         var wd     = 300; // itemListView.ActualWidth;
         var imgUrl = string.Format(url, vm.CurrentQuestion.Id, wd, ht);
         firstPage = new ReportPrint()
         {
             ImageUrl = imgUrl
         };
     }
     PrintingRoot.Children.Add(firstPage);
     PrintingRoot.InvalidateMeasure();
     PrintingRoot.UpdateLayout();
 }