Property | Type | Description | |
---|---|---|---|
PdfViewerProperty |
Method | Description | |
---|---|---|
PdfToolBar ( ) : System |
Initialize the new instance of PdfToolBar class
|
Method | Description | |
---|---|---|
CreateButton ( string name, string text, string toolTipText, |
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 ) : |
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
|
protected CreateButton ( string name, string text, string toolTipText, |
||
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 | 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 |
return | System.Windows.Controls.Button |
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 |
return | System.Windows.Controls.Primitives.ToggleButton |
protected CreateUriToResource ( string resName ) : |
||
resName | string | Resource's name. |
return |
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. |
return | void |