/// <summary> /// Initializes a new instance of the <see cref="InteractionButtonsPanel"/> class. /// </summary> /// <param name="interactiveObject">Interactive object with /// which this interaction button is linked.</param> /// <param name="buttons">Array of interaction buttons.</param> internal InteractionButtonsPanel( IInteractiveObject interactiveObject, params InteractionButton[] buttons) : base(interactiveObject) { InteractionAreaList.AddRange(buttons); }
/// <summary> /// Initializes a new instance of the <see cref="MarkAnnotationBuilder"/> class. /// </summary> /// <param name="view">The mark annotation.</param> public MarkAnnotationBuilder(MarkAnnotationView view) : base(view) { // create an interaction area that can be moved, hovered and clicked ImageViewerArea buildArea = new ImageViewerArea( InteractionAreaType.Hover | InteractionAreaType.Movable | InteractionAreaType.Clickable); // mark that any mouse button can interact with interaction area buildArea.AnyActionMouseButton = true; // add the interacton area to a list of interaction areas of the interaction controller InteractionAreaList.Add(buildArea); // set initial size of annotation _initialSize = view.Size; }