Class AnnotationToolbar
The AnnotationToolbar works with a ToolManager to allow quick selection of different tools. The toolbar shows a list of buttons which prompts the associated ToolManager to switch to that tool.
Inheritance
System.Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Control
Windows.UI.Xaml.Controls.UserControl
AnnotationToolbar
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Inherited Members
Namespace: pdftron.PDF.Tools.Controls
Assembly: pdftron.PDF.Tools.dll
Syntax
public sealed class AnnotationToolbar : AnnotationToolbarBase, IDependencyObject, IDependencyObject2, IUIElement, IUIElement2, IUIElement3, IUIElement4, IUIElement5, IUIElement7, IUIElement8, IUIElement9, IUIElement10, IUIElementOverrides, IUIElementOverrides7, IUIElementOverrides8, IUIElementOverrides9, IAnimationObject, IVisualElement, IFrameworkElement, IFrameworkElement2, IFrameworkElement3, IFrameworkElement4, IFrameworkElement6, IFrameworkElement7, IFrameworkElementProtected7, IFrameworkElementOverrides, IFrameworkElementOverrides2, IControl, IControl2, IControl3, IControl4, IControl5, IControl7, IControlProtected, IControlOverrides, IControlOverrides6, IUserControl, ICloseableControl
Constructors
AnnotationToolbar(AnnotationToolbarViewModel)
Creates a new AnnotationToolbar that is not associated with a ToolManager. Use the ToolManager property to make the AnnotationToolbar Work with a ToolManager.
Declaration
public AnnotationToolbar(AnnotationToolbarViewModel viewModel)
Parameters
Type | Name | Description |
---|---|---|
AnnotationToolbarViewModel | viewModel |
AnnotationToolbar(ToolManager)
Creates a new AnnotationToolbar that works with the ToolManager.
Declaration
public AnnotationToolbar(ToolManager toolManager)
Parameters
Type | Name | Description |
---|---|---|
ToolManager | toolManager |
Methods
AnnotationCommandBar_SizeChanged(Object, SizeChangedEventArgs)
Declaration
protected override void AnnotationCommandBar_SizeChanged(object sender, SizeChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
Windows.UI.Xaml.SizeChangedEventArgs | e |
Overrides
GoBack()
Will go back if possible
Declaration
public bool GoBack()
Returns
Type | Description |
---|---|
System.Boolean | true if it went back, false otherwise |
SwitchToLargeIcons()
Call this function to make the buttons and icons larger, to work better on a tablet or desktop size screen.
Declaration
public void SwitchToLargeIcons()
SwitchToSmallIcons()
Call this function to make the buttons and icons smaller, to work better on a phone size screen.
Declaration
public void SwitchToSmallIcons()
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement