protected override void OnActivated() { base.OnActivated(); PrintingController printingController = Frame.GetController <PrintingController>(); if (printingController != null) { printingController.PrintPreviewAction.Active["NestedDetailView"] = false; } }
protected override void OnDeactivated() { PrintingController printingController = Frame.GetController <PrintingController>(); if (printingController != null) { printingController.PrintPreviewAction.Active.RemoveItem("NestedDetailView"); } base.OnDeactivated(); }
protected override void OnActivated() { base.OnActivated(); reportService = Frame.GetController <WinReportServiceController>(); printingService = Frame.GetController <PrintingController>(); if (reportService != null) { reportService.CustomShowPreview += reportService_CustomShowPreview; } if (printingService != null) { printingService.PrintingSettingsLoaded += printingService_PrintingSettingsLoaded; } }