Class AnnotationToolbarBase
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
AnnotationToolbarBase
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Assembly: pdftron.PDF.Tools.dll
public class AnnotationToolbarBase : UserControl, 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
Declaration
public AnnotationToolbarBase(AnnotationToolbarViewModel viewModel)
Parameters
Fields
Declaration
protected double ExtraPaddingForInkToolbar
Field Value
Type |
Description |
System.Double |
|
Declaration
protected double ExtraPaddingForPolygonSaveToolbar
Field Value
Type |
Description |
System.Double |
|
Allows user to externally control whether the Cloud button is visible or collapsed (since view model is not exposed)
Declaration
public static readonly DependencyProperty IsCloudToolButtonVisibleProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Allows user to externally control whether the Polygon button is visible or collapsed (since view model is not exposed)
Declaration
public static readonly DependencyProperty IsPolygonToolButtonVisibleProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Allows user to externally control whether the Polyline button is visible or collapsed (since view model is not exposed)
Declaration
public static readonly DependencyProperty IsPolylineToolButtonVisibleProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Declaration
protected double MINIMUM_BUTTON_WIDTH
Field Value
Type |
Description |
System.Double |
|
Declaration
protected double MINIMUM_BUTTON_WIDTH_SMALL_SCREEN
Field Value
Type |
Description |
System.Double |
|
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Declaration
protected System.Collections.Generic.List<ButtonBase> ResizableInkButtons
Field Value
Type |
Description |
System.Collections.Generic.List<Windows.UI.Xaml.Controls.Primitives.ButtonBase> |
|
Declaration
protected System.Collections.Generic.List<ButtonBase> ResizablePolygonSaveButtons
Field Value
Type |
Description |
System.Collections.Generic.List<Windows.UI.Xaml.Controls.Primitives.ButtonBase> |
|
Declaration
public static readonly DependencyProperty SmallScreenLayoutProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Declaration
protected ButtonBase[] ToolbarButtonRanking
Field Value
Type |
Description |
Windows.UI.Xaml.Controls.Primitives.ButtonBase[] |
|
Properties
Gets or sets whether or not the buttons stay down once pressed.
When set to true, the toolbar will not switch back to the pan tool after each
annotation is drawn.
Declaration
public bool ButtonsStayDown { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets wether the Ink Muilti-Stroke option is enabled.
It will lock the PDF Viewer to the selected page and enable undo, redo and save options
Declaration
public bool InkMultiStroke { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Arrow Tool button is visible or collapsed
Declaration
public bool IsArrowToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Circle Tool button is visible or collapsed
Declaration
public bool IsCircleToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Close Toolbar button is visible or collapsed
Declaration
public bool IsCloseToolbarButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Cloud button is visible or collapsed
Declaration
public bool IsCloudToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Eraser Tool button is visible or collapsed
Declaration
public bool IsEraserToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Expand Toolbar button is visible or collapsed
Declaration
public bool IsExpandButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Highlight Text Tool button is visible or collapsed
Declaration
public bool IsHighlightToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Ink Tool button is visible or collapsed
Declaration
public bool IsInkToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Multi-Select Lasso Tool button is visible or collapsed
Declaration
public bool IsLassoToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Line Tool button is visible or collapsed
Declaration
public bool IsLineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Marker Tool button is visible or collapsed
Declaration
public bool IsMarkerToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMarqueeZoomToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Measurement Tools button is visible or collapsed
Declaration
public bool IsMeasureToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Multi-Select Rectangular Tool button is visible or collapsed
Declaration
public bool IsMultiSelectToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Pan Tool button is visible or collapsed
Declaration
public bool IsPanToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Perimeter Tool button is visible or collapsed
Declaration
public bool IsPerimeterToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Polygon button is visible or collapsed
Declaration
public bool IsPolygonToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Polyline button is visible or collapsed
Declaration
public bool IsPolylineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Area Redaction Tool button is visible or collapsed
Declaration
public bool IsRedactionAreaToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsRedactionTextToolButtonVisible
Allows user to externally control whether the Text Redaction Tool button is visible or collapsed
Declaration
public bool IsRedactionTextToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Redaction Tools button is visible or collapsed
Declaration
public bool IsRedactionToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Ruler Tool button is visible or collapsed
Declaration
public bool IsRulerToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Shape Tools button is visible or collapsed
Declaration
public bool IsShapeToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Signature Tool button is visible or collapsed
Declaration
public bool IsSignatureToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Square Tool button is visible or collapsed
Declaration
public bool IsSquareToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Squiggly Text Tool button is visible or collapsed
Declaration
public bool IsSquigglyToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Stamper Tool button is visible or collapsed
Declaration
public bool IsStamperToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Sticky Note Tool button is visible or collapsed
Declaration
public bool IsStickyNoteToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Strikeout Text Tool button is visible or collapsed
Declaration
public bool IsStrikeoutToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsTextBoxToolButtonVisible
Allows user to externally control whether the Text Box Tool button is visible or collapsed
Declaration
public bool IsTextBoxToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Underline Text Tool button is visible or collapsed
Declaration
public bool IsUnderlineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Allows user to externally control whether the Undo and Redo buttons are visible or collapsed
Declaration
public bool IsUndoRedoToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool SmallScreenLayout { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets whether or not the buttons stay down once pressed.
When set to true, the toolbar will not switch back to the pan tool after each
annotation is drawn.
Declaration
public ToolManager ToolManager { get; set; }
Property Value
Declaration
public AnnotationToolbarViewModel ViewModel { get; set; }
Property Value
Methods
Declaration
protected virtual void AnnotationCommandBar_SizeChanged(object sender, SizeChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
Windows.UI.Xaml.SizeChangedEventArgs |
e |
|
Perform the closing of the annotation toolbar
Declaration
public void CloseControl()
Declaration
public static AnnotationToolbarOrientation GetOrientation(DependencyObject d)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyObject |
d |
|
Returns
Declaration
protected bool IsButtonHidden(ButtonBase currButtonBase)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.Controls.Primitives.ButtonBase |
currButtonBase |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected virtual void ResizeButtons(Size newSize)
Parameters
Type |
Name |
Description |
Windows.Foundation.Size |
newSize |
|
Declaration
public static void SetOrientation(DependencyObject d, AnnotationToolbarOrientation value)
Parameters
Events
Declaration
public event ControlClosedDelegate ControlAppBarOpened
Event Type
Occurs when the control has been requested to close usually by pressing the close button
Declaration
public event ControlClosedDelegate ControlClosed
Event Type
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Extension Methods