Class AnnotationToolbarViewModel
Inheritance
System.Object
AnnotationToolbarViewModel
Assembly: pdftron.PDF.Tools.dll
public class AnnotationToolbarViewModel : ViewModelBase
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 AnnotationToolbarViewModel(ICloseableControl view)
Parameters
Creates a new AnnotationToolbar that works with the ToolManager.
Declaration
public AnnotationToolbarViewModel(ICloseableControl view, ToolManager toolManager)
Parameters
Fields
_IsMainAppBarOpen
Declaration
public bool _IsMainAppBarOpen
Field Value
Type |
Description |
System.Boolean |
|
Properties
Declaration
public double AppBarCompactHeight { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public bool CanRedo { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanRedoInk { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanSaveInk { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanSaveMeasure { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanSavePolygon { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanUndo { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public int CurrentPresetLabel { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public ToolType CurrentTool { get; }
Property Value
Declaration
public Brush CurrentToolColor { get; set; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.Brush |
|
Ink Muilti Stroke option will lock the PDF Viewer to the selected page and enable
undo and redo options for multi strokes
Declaration
public bool InkMultiStroke { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand InkPresetButtonCommand { get; }
Property Value
Declaration
public RelayCommand InkToolbarCommand { get; }
Property Value
Declaration
public bool IsAreaToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsArrowToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsCircleToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsCloseToolbarButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsCloudToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsEraserToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsExpandButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsHighlightToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsInkToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsLassoToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsLineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsMainAppBarOpen
Declaration
public bool IsMainAppBarOpen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMarkerToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMarqueeZoomToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMeasureToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsMultiSelectToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPanToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPerimeterToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPolygonToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPolylineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsRedactionAreaToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsRedactionTextToolButtonVisible
Declaration
public bool IsRedactionTextToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsRedactionTipVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsRedactionToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsRulerToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsShapeToolsButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsSignatureToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsSquareToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsSquigglyToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsStamperToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsStickyNoteToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsStrikeoutToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsTextBoxToolButtonVisible
Declaration
public bool IsTextBoxToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsUnderlineToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsUndoRedoToolButtonVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand MeasureToolbarCommand { get; }
Property Value
Declaration
public bool PanSelected { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand PolygonSaveToolbarCommand { get; }
Property Value
Declaration
public SolidColorBrush PresetBrush0 { get; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.SolidColorBrush |
|
Declaration
public SolidColorBrush PresetBrush1 { get; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.SolidColorBrush |
|
Declaration
public SolidColorBrush PresetBrush2 { get; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.SolidColorBrush |
|
Declaration
public RelayCommand RedactionToolbarCommand { get; }
Property Value
Declaration
public RelayCommand RedoButtonClickedCommand { get; }
Property Value
Declaration
public string RedoToolTip { get; set; }
Property Value
Type |
Description |
System.String |
|
Controls whether the regular annotation bar or ink bar is in view
Declaration
public bool ShowInkToolbar { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Controls whether the regular annotation bar or measure bar is in view
Declaration
public bool ShowMeasureToolbar { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Controls whether the regular annotation bar or polygon bar is in view
Declaration
public bool ShowPolygonSaveToolbar { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool ShowRedactionToolbar { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool Subscribed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ToggleMainAppBarCommand
Declaration
public RelayCommand ToggleMainAppBarCommand { get; }
Property Value
Declaration
public RelayCommand ToolButtonClickedCommand { get; }
Property Value
Declaration
public RelayCommand UndoButtonClickedCommand { get; }
Property Value
Declaration
public string UndoToolTip { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public virtual bool GetSubscribed()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static ToolType GetToolTypeFromString(string option)
Parameters
Type |
Name |
Description |
System.String |
option |
|
Returns
Declaration
public override bool GoBack()
Returns
Type |
Description |
System.Boolean |
|
Overrides
Perform the escape key operation by closing any opened toolbar, saving chagnes, and reseting to pan tool
Declaration
public void PerformEscapeFromTool()
Perform Freehand/Ink Redo
Declaration
public void PerformInkRedo()
Perform Freehand/Ink Undo
Declaration
public void PerformInkUndo()
Declaration
public void RedoButtonCommandImpl(object option)
Parameters
Type |
Name |
Description |
System.Object |
option |
|
Declaration
public void SetCloseableControl(ICloseableControl control)
Parameters
ToggleMainAppBarCommandImpl(Object)
Declaration
public void ToggleMainAppBarCommandImpl(object option)
Parameters
Type |
Name |
Description |
System.Object |
option |
|
Declaration
public void ToolButtonClicked(object option)
Parameters
Type |
Name |
Description |
System.Object |
option |
|
Declaration
public void UndoButtonCommandImpl(object option)
Parameters
Type |
Name |
Description |
System.Object |
option |
|
Update the current selected tool to a new one
Declaration
public void UpdateCurrentToolTo(ToolType newCurrentTool)
Parameters
Type |
Name |
Description |
ToolType |
newCurrentTool |
the tool to be selected
|
Events
Declaration
public event AnnotationToolbarViewModel.ToolSelectedDelegate ToolSelected
Event Type