C# Class Patagames.Pdf.Net.Controls.Wpf.ToolBars.PdfToolBarMain

Provides a container for Windows toolbar objects with predefined functionality for opening and printing
Inheritance: PdfToolBar
Afficher le fichier Open project: Patagames/Pdf.Wpf

Méthodes publiques

Свойство Type Description
WindowProperty System.Windows.DependencyProperty

Méthodes protégées

Méthode Description
InitializeButtons ( ) : void

Create all buttons and add its into toolbar. Override this method to create custom buttons

OnOpenClick ( System.Windows.Controls.Button item ) : void

Occurs when the Open button is clicked

OnPasswordRequired ( ) : string

Occurs when the Loaded document protected by password. Application should return the password

OnPdfPrinDocumentCreaded ( EventArgs e ) : void

Occurs after an instance of PdfPrintDocument class is created and before printing is started.

OnPdfViewerChanging ( PdfViewer oldValue, PdfViewer newValue ) : void

Called when the current PdfViewer control associated with the ToolBar is changing.

OnPrintClick ( System.Windows.Controls.Button item ) : void

Occurs when the Print button is clicked

UpdateButtons ( ) : void

Called when the ToolBar's items need to change its states

Private Methods

Méthode Description
PdfViewer_DocumentClosed ( object sender, EventArgs e ) : void
PdfViewer_DocumentLoaded ( object sender, EventArgs e ) : void
ShowPrintDialog ( System dlg ) : void
SubscribePdfViewEvents ( PdfViewer newValue ) : void
UnsubscribePdfViewEvents ( PdfViewer oldValue ) : void
btn_OpenDocClick ( object sender, EventArgs e ) : void
btn_PrintDocClick ( object sender, EventArgs e ) : void

Method Details

InitializeButtons() protected méthode

Create all buttons and add its into toolbar. Override this method to create custom buttons
protected InitializeButtons ( ) : void
Résultat void

OnOpenClick() protected méthode

Occurs when the Open button is clicked
protected OnOpenClick ( System.Windows.Controls.Button item ) : void
item System.Windows.Controls.Button The item that has been clicked
Résultat void

OnPasswordRequired() protected méthode

Occurs when the Loaded document protected by password. Application should return the password
protected OnPasswordRequired ( ) : string
Résultat string

OnPdfPrinDocumentCreaded() protected méthode

Occurs after an instance of PdfPrintDocument class is created and before printing is started.
protected OnPdfPrinDocumentCreaded ( EventArgs e ) : void
e EventArgs
Résultat void

OnPdfViewerChanging() protected méthode

Called when the current PdfViewer control associated with the ToolBar is changing.
protected OnPdfViewerChanging ( PdfViewer oldValue, PdfViewer newValue ) : void
oldValue PdfViewer PdfViewer control of which was associated with the ToolBar.
newValue PdfViewer PdfViewer control of which will be associated with the ToolBar.
Résultat void

OnPrintClick() protected méthode

Occurs when the Print button is clicked
protected OnPrintClick ( System.Windows.Controls.Button item ) : void
item System.Windows.Controls.Button The item that has been clicked
Résultat void

UpdateButtons() protected méthode

Called when the ToolBar's items need to change its states
protected UpdateButtons ( ) : void
Résultat void

Property Details

WindowProperty public_oe static_oe property

DependencyProperty as the backing store for PdfViewer
public static DependencyProperty,System.Windows WindowProperty
Résultat System.Windows.DependencyProperty