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