Class AnnotationCommandBar
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
AnnotationCommandBar
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Assembly: pdftron.PDF.Tools.dll
public sealed class AnnotationCommandBar : 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
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 AnnotationCommandBar()
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 AnnotationCommandBar(AnnotationToolbarViewModel viewModel)
Parameters
Creates a new AnnotationToolbar that works with the ToolManager.
Declaration
public AnnotationCommandBar(ToolManager toolManager)
Parameters
Properties
Declaration
public bool IsAppBarOpen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsInkOpen { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMeasureOpen { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPolygonSaveOpen { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
protected override void AnnotationCommandBar_SizeChanged(object sender, SizeChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
Windows.UI.Xaml.SizeChangedEventArgs |
e |
|
Overrides
Declaration
Returns
Type |
Description |
System.Boolean |
true if it went back, false otherwise
|
ResizeButtons will take care of transfering the tool bar buttons from the primary tool bar
to the secondary tool bar based on the current visibility state of the tool buttons
Declaration
protected override void ResizeButtons(Size newSize)
Parameters
Type |
Name |
Description |
Windows.Foundation.Size |
newSize |
|
Overrides
Events
Declaration
public event AnnotationCommandBar.AppBarEventHandler AppBarChanged
Event Type
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Extension Methods