using FastReport.Preview; namespace FastReport { partial class Report { private WpfPreviewControl wpfPreview; /// /// Gets or sets the WPF preview control. /// public WpfPreviewControl WpfPreview { get => wpfPreview; set { wpfPreview = value; if (wpfPreview != null) Preview = wpfPreview.InnerPreview; } } /// /// Prepares the report and shows it in the provided PreviewControl (async way). /// /// The preview control. public void PrepareAsync(WpfPreviewControl preview) => PrepareAsync(preview?.InnerPreview); } }