menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomPageSizeDialog - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved