Class PrintPreviewAreaControl
Represents a control that displays the print preview of page content that is ready for printing operation.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Printing
Assembly: Syncfusion.SfShared.Wpf.dll
Syntax
public class PrintPreviewAreaControl : Control, INotifyPropertyChanged, IDisposable
Constructors
PrintPreviewAreaControl()
Initializes a new instance of
Declaration
public PrintPreviewAreaControl()
Fields
PageIndexProperty
Identifies the Syncfusion.Windows.Shared.Printing.PrintPreviewAreaControl.PageIndex dependency property.
Declaration
public static readonly DependencyProperty PageIndexProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.Windows.Shared.Printing.PrintPreviewAreaControl.PageIndex dependency property.
ZoomFactorProperty
Identifies the Syncfusion.Windows.Shared.Printing.PrintPreviewAreaControl.ZoomFactor dependency property.
Declaration
public static readonly DependencyProperty ZoomFactorProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.Windows.Shared.Printing.PrintPreviewAreaControl.ZoomFactor dependency property.
Properties
FirstCommand
Gets the command to navigate first page in print document.
Declaration
public ICommand FirstCommand { get; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
LastCommand
Gets the command to navigate last page in print document.
Declaration
public ICommand LastCommand { get; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
NextCommand
Gets the command to navigate next page in print document.
Declaration
public ICommand NextCommand { get; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
PageIndex
Gets or sets the index of the page.
Declaration
public int PageIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An index of the page. The default index is 1. |
PreviousCommand
Gets the command to navigate previous page in print document.
Declaration
public ICommand PreviousCommand { get; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
PrintManager
Gets or sets an instance of the
Declaration
public PrintManager PrintManager { get; set; }
Property Value
Type | Description |
---|---|
PrintManager | An instance of the |
Remarks
TotalPages
Gets or sets the total number of pages .
Declaration
public int TotalPages { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The total number of pages. |
ZoomFactor
Gets or sets a value that indicates how large the pages will appear.
Declaration
public double ZoomFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A value indicating how large the pages will appear. The default zoom factor is 100.0. |
Methods
Dispose()
Releases all the resources used by the
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
OnApplyTemplate()
Builds the visual tree for the PrintPreviewAreaControl when a new template is applied.
Declaration
public override void OnApplyTemplate()
Events
PropertyChanged
Occurs when a property value changes in
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |