PrintPageEventArgs.PageVisual Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the visual element to print.

Namespace:  System.Windows.Printing
Assembly:  System.Windows (in System.Windows.dll)


Public Property PageVisual As UIElement
public UIElement PageVisual { get; set; }

Property Value

Type: System.Windows.UIElement
The visual element to print. The default is nulla null reference (Nothing in Visual Basic).


To print the entire Silverlight control, set the PageVisual property to the root visual element. Alternatively, you can print a portion of the Silverlight control by setting PageVisual to the named UIElement that you want to print.

Version Information


Supported in: 5, 4


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.