Class CustomMarginDialog
Interaction logic for CustomMargin.xaml
Implements
Inherited Members
Namespace: Syncfusion.Windows.Shared.Printing
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public class CustomMarginDialog : ChromelessWindow, IComponentConnector
Constructors
CustomMarginDialog(PrintOptionsControl, Thickness)
Intialize the instance of CustomMarginDialog class.
Declaration
public CustomMarginDialog(PrintOptionsControl control, Thickness pageMargin)
Parameters
Type | Name | Description |
---|---|---|
PrintOptionsControl | control | |
System.Windows.Thickness | pageMargin | The System.Windows.Thickness of the selected page |
Properties
BottomMargin
Gets or sets the value to the BottomMargin.
Declaration
public double BottomMargin { get; set; }
Property Value
Type |
---|
System.Double |
LeftMargin
Gets or sets the value to the LeftMargin.
Declaration
public double LeftMargin { get; set; }
Property Value
Type |
---|
System.Double |
RightMargin
Gets or sets the value to the RightMargin.
Declaration
public double RightMargin { get; set; }
Property Value
Type |
---|
System.Double |
TopMargin
Gets or sets the value to the TopMargin.
Declaration
public double TopMargin { get; set; }
Property Value
Type |
---|
System.Double |
Methods
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
OnApplyTemplate()
Builds the visual tree for the Custom Margin Dialog.
Declaration
public override void OnApplyTemplate()
Overrides
OnClosing(CancelEventArgs)
Invoked when an closed System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
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 margin 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. |