Class CustomPageSizeDialog
Interaction logic for CustomPageSize.xaml
Inheritance
System.Object
CustomPageSizeDialog
Implements
System.Windows.Markup.IComponentConnector
Namespace: Syncfusion.Windows.Shared.Printing
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class CustomPageSizeDialog : Window, IComponentConnector
Constructors
CustomPageSizeDialog(PrintOptionsControl, Size)
Intialize the instance of CustomPageSizeDialog class.
Declaration
public CustomPageSizeDialog(PrintOptionsControl printOptionsControl, Size pagesize)
Parameters
Type | Name | Description |
---|---|---|
PrintOptionsControl | printOptionsControl | |
System.Windows.Size | pagesize | The System.Windows.Size of the selected page |
Properties
PageHeight
Gets or sets he value to the PageHeight.
Declaration
public double PageHeight { get; set; }
Property Value
Type |
---|
System.Double |
PageWidth
Gets or sets the value to the PageWidth.
Declaration
public double PageWidth { get; set; }
Property Value
Type |
---|
System.Double |
Methods
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
OnApplyTemplate()
Builds the visual tree for the Custom Page Size Dialog.
Declaration
public override void OnApplyTemplate()
OnClosing(CancelEventArgs)
Occurs when the closing the custom page size control.
Declaration
protected override void OnClosing(CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CancelEventArgs | e | The cancel event System.ComponentModel.CancelEventArgs args. |
OnPreviewKeyDown(KeyEventArgs)
Occurs when the key down event is occured in the custom page size control.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The Key event System.Windows.Input.KeyEventArgs args. |
Implements
System.Windows.Markup.IComponentConnector