Gets or sets the template that specifies the background of a page. This is a dependency property.
Namespace:DevExpress.Xpf.Diagram
Assembly:DevExpress.Xpf.Diagram.v19.2.dll

Syntax
C# |
public DataTemplate DiagramPageBackgroundTemplate { get; set; }
|
VB |
Public Property DiagramPageBackgroundTemplate As DataTemplate
|
Property value
Type: DataTemplate
A System.Windows.DataTemplate object that specifies the background of a page.

Remarks
Use the DiagramPageBackgroundTemplate property to display a custom page background.
The following example demonstrates a DiagramControl that displays an image in the center of each page.

XAML |
<dxdiag:DiagramDesignerControl>
<dxdiag:DiagramDesignerControl.DiagramPageBackgroundTemplate>
<DataTemplate>
<Image Source="DevExpress-Logo.png" HorizontalAlignment="Center"
VerticalAlignment="Center" Stretch="None" Opacity="0.8"/>
</DataTemplate>
</dxdiag:DiagramDesignerControl.DiagramPageBackgroundTemplate>
</dxdiag:DiagramDesignerControl>
|

See Also