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

Represents the base functionality for all PdfToolBars
Inheritance: System.Windows.Controls.ToolBar
Afficher le fichier Open project: Patagames/Pdf.Wpf

Méthodes publiques

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

Méthodes publiques

Méthode Description
PdfToolBar ( ) : System

Initialize the new instance of PdfToolBar class

Méthodes protégées

Méthode Description
CreateButton ( string name, string text, string toolTipText, Uri imgRes, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Button

Create a new instance of Button class with the specified name that displays the specified text and image and that raises the Click event.

CreateToggleButton ( string name, string text, string toolTipText, string imgResName, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Primitives.ToggleButton

Create a new instance of ToggleButon class with the specified name that displays the specified text and image and that raises the Click event.

CreateUriToResource ( string resName ) : Uri

Create the Uri to the resource with the specified name.

InitializeButtons ( ) : void

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

OnPdfViewerChanging ( PdfViewer oldValue, PdfViewer newValue ) : void

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

UpdateButtons ( ) : void

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

Method Details

CreateButton() protected méthode

Create a new instance of Button class with the specified name that displays the specified text and image and that raises the Click event.
protected CreateButton ( string name, string text, string toolTipText, Uri imgRes, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Button
name string The name of the Button.
text string The text to display on the Button.
toolTipText string Specify the text that appears as a ToolTip for a control.
imgRes System.Uri The image to display on the Button.
onClick RoutedEventHandler An event handler that raises the Click event.
imgWidth int Image width
imgHeight int Image height
imageTextType ImageTextType Image and text layout
Résultat System.Windows.Controls.Button

CreateToggleButton() protected méthode

Create a new instance of ToggleButon class with the specified name that displays the specified text and image and that raises the Click event.
protected CreateToggleButton ( string name, string text, string toolTipText, string imgResName, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Primitives.ToggleButton
name string The name of the ToggleButton.
text string The text to display on the ToggleButton.
toolTipText string Specify the text that appears as a ToolTip for a control.
imgResName string The image name in resources to display on the ToggleButton.
onClick RoutedEventHandler An event handler that raises the Click event.
imgWidth int Image width
imgHeight int Image height
imageTextType ImageTextType Image and text layout
Résultat System.Windows.Controls.Primitives.ToggleButton

CreateUriToResource() protected méthode

Create the Uri to the resource with the specified name.
protected CreateUriToResource ( string resName ) : Uri
resName string Resource's name.
Résultat System.Uri

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

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

PdfToolBar() public méthode

Initialize the new instance of PdfToolBar class
public PdfToolBar ( ) : System
Résultat System

UpdateButtons() protected méthode

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

Property Details

PdfViewerProperty public_oe static_oe property

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