Class PrintPreviewControl
Represents the class which holds data and functionalities for showing preview process of the printing option in SfDiagram control. It is used to cutomize the printing options and showing ideal printing pages which is being printed.
Inheritance
Namespace: Syncfusion.UI.Xaml.Diagram.Controls
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class PrintPreviewControl : Control
Constructors
PrintPreviewControl()
Initializes a new instance of the PrintPreviewControl class.
Declaration
public PrintPreviewControl()
Fields
AdvancedCommandProperty
Provides information about the AdvancedCommand property.
Declaration
public static readonly DependencyProperty AdvancedCommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CancelCommandProperty
Provides information about the CancelCommand property.
Declaration
public static readonly DependencyProperty CancelCommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CurrentPageProperty
Provides information about the CurrentPage property.
Declaration
public static readonly DependencyProperty CurrentPageProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PageCountProperty
Provides information about the PageCount property.
Declaration
public static readonly DependencyProperty PageCountProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PageNavigationCommandProperty
Provides information about the PageNavigationCommand property.
Declaration
public static readonly DependencyProperty PageNavigationCommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PrintCommandProperty
Provides information about the PrintCommand property.
Declaration
public static readonly DependencyProperty PrintCommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
SelectionChangeCommandProperty
Provides information about the SelectionChangeCommand property.
Declaration
public static readonly DependencyProperty SelectionChangeCommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
VisualProperty
Provides information about the Visual property.
Declaration
public static readonly DependencyProperty VisualProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
AdvancedCommand
Gets or sets the advanced command value to the advanced priting option of print preview control.
Declaration
public ICommand AdvancedCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
CancelCommand
Gets or sets the cancel command value to the cancel priting option of print preview control.
Declaration
public ICommand CancelCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
CurrentPage
Gets or sets the current page number value of the print preview control.
Declaration
public int CurrentPage { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
PageCount
Gets or sets the total page count value of the print preview control.
Declaration
public int PageCount { get; }
Property Value
| Type |
|---|
| System.Int32 |
PageNavigationCommand
Gets or sets the page navigating values to the print preview control.
Declaration
public ICommand PageNavigationCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
PrintCommand
Gets or sets the printing command value to the print preview control.
Declaration
public ICommand PrintCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
SelectionChangeCommand
Gets or sets the selection change command values to the print preview control when selection is changed to one page to another page.
Declaration
public ICommand SelectionChangeCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
Visual
Gets or sets Visual
Declaration
public VisualBrush Visual { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.VisualBrush |
Methods
OnApplyTemplate()
Overridden to apply the templates to the print preview control elements.
Declaration
public override void OnApplyTemplate()