PdfViewerControl.PrintPreviewDialogTemplate Property
In This Article
Gets or sets the template that defines the visual representation of the print preview dialog. This is a dependency property.
Namespace: DevExpress.Xpf.PdfViewer
Assembly: DevExpress.Xpf.PdfViewer.v24.2.dll
NuGet Package: DevExpress.Wpf.PdfViewer
#Declaration
public DataTemplate PrintPreviewDialogTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
The PrintPreviewDialogTemplate template should contain a System.Windows.Controls.ContentControl (or a System.Windows.Controls.ContentPresenter) which Content is set to a DialogService.
See the example below.
<dxpdf:PdfViewerControl.PrintPreviewDialogTemplate>
<DataTemplate>
<ContentControl>
<ContentControl.Content>
<dx:DialogService>
<dx:DialogService.DialogStyle>
<Style TargetType="dx:DXDialogWindow">
<Setter Property="Width" Value="200"/>
<Setter Property="Height" Value="300"/>
</Style>
</dx:DialogService.DialogStyle>
<dx:DialogService.ViewTemplate>
<DataTemplate>
<Label Content="Custom content"/>
</DataTemplate>
</dx:DialogService.ViewTemplate>
</dx:DialogService>
</ContentControl.Content>
</ContentControl>
</DataTemplate>
</dxpdf:PdfViewerControl.PrintPreviewDialogTemplate>
See Also