You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

DiagramControl.DiagramPageBackgroundTemplate Property

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.v20.2.dll


public DataTemplate DiagramPageBackgroundTemplate { get; set; }
Public Property DiagramPageBackgroundTemplate As DataTemplate

Property Value

Type Description

A DataTemplate object that specifies the background of a page.


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.


            <Image Source="DevExpress-Logo.png" HorizontalAlignment="Center"
                   VerticalAlignment="Center" Stretch="None" Opacity="0.8"/>

To specify a custom printed page background, use the DiagramControl.PrintPageBackgroundTemplate property.

See Also