Click or drag to resize

PdfToolBarMain Class

Provides a container for Windows toolbar objects with predefined functionality for opening and printing
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsItemsControl
                System.Windows.ControlsHeaderedItemsControl
                  System.Windows.ControlsToolBar
                    Patagames.Pdf.Net.Controls.Wpf.ToolBarsPdfToolBar
                      Patagames.Pdf.Net.Controls.Wpf.ToolBarsPdfToolBarMain

Namespace:  Patagames.Pdf.Net.Controls.Wpf.ToolBars
Assembly:  Patagames.Pdf.Wpf (in Patagames.Pdf.Wpf.dll) Version: 4.54.2704
Syntax
public class PdfToolBarMain : PdfToolBar

The PdfToolBarMain type exposes the following members.

Constructors
  NameDescription
Public methodPdfToolBarMain
Initializes a new instance of the PdfToolBarMain class
Top
Properties
  NameDescription
Public propertyWindow
Sets the window there the Toolbar is hosted. If not specified then the PrintDialog will not be shown during printing.
Top
Methods
  NameDescription
Protected methodInitializeButtons
Create all buttons and add its into toolbar. Override this method to create custom buttons
(Overrides PdfToolBarInitializeButtons.)
Protected methodOnOpenClick
Occurs when the Open button is clicked
Protected methodOnPasswordRequired
Occurs when the Loaded document protected by password. Application should return the password
Protected methodOnPdfPrinDocumentCreaded
Occurs after an instance of PdfPrintDocument class is created and before printing is started.
Protected methodOnPdfViewerChanging
Called when the current PdfViewer control associated with the ToolBar is changing.
(Overrides PdfToolBarOnPdfViewerChanging(PdfViewer, PdfViewer).)
Protected methodOnPrintClick
Occurs when the Print button is clicked
Protected methodUpdateButtons
Called when the ToolBar's items need to change its states
(Overrides PdfToolBarUpdateButtons.)
Top
Events
  NameDescription
Public eventPasswordRequired
Occurs when the loaded document protected by password. Application should return the password through Value property
Public eventPdfPrintDocumentCreated
Occurs after an instance of PdfPrintDocument class is created and before printing is started.
Top
Fields
  NameDescription
Public fieldStatic memberWindowProperty
DependencyProperty as the backing store for PdfViewer
Top
See Also