Table of Contents

Class InnerPopupToolBar

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a popup control that contains a ToolBar as its content. This control is used to display a toolbar in a popup manner, typically for context menus or tool palettes.

public class InnerPopupToolBar : PopupControl<ToolBar>, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo, IContextMenuHost
Inheritance
InnerPopupToolBar
Implements

Constructors

InnerPopupToolBar()

Initializes a new instance of the InnerPopupToolBar class.

Fields

DefaultMinPopupWidth

Gets or sets default minimal popup toolbar width.

ShowDebugCorners

Gets or sets whether to show debug corners when control is painted.

Properties

AllowUpdateMinimumSize

Gets or sets a value indicating whether the minimum size of the control is updated before it is shown on the screen.

CloseOnSiblingClose

Gets or sets a value indicating whether this popup should close when a sibling popup is closed.

CloseOnToolClick

Gets or sets a value indicating whether the popup should close when a tool button is clicked. Default is true.

Default

Gets or sets default instance of the InnerPopupToolBar.

HideOnClickOutside

Gets or sets a value indicating whether the popup should be hidden when a click occurs outside of it.

IsLabelTextWidthMaximized

Gets or sets a value indicating whether the label text width is maximized. When set to true, the control will adjust the width of the label text to be the same for all toolbar items, based on the widest label text.

IsRightSideElementWidthMaximized

Gets or sets a value indicating whether the width of the right-side element is maximized.

LastUsedAlignment

Gets or sets the last used alignment when showing the popup in a container.

NeedsRemainingImages

Gets or sets a value indicating whether the remaining images are required for the toolbar items. When set to true, the control will ensure that all images are assigned. For items without a specific image, a default transparent image will be used.

NeedsRemainingLabelImages

Gets or sets a value indicating whether the remaining label images are required for the toolbar items. When set to true, the control will ensure that all label images are assigned. For items without a specific label image, a default transparent image will be used.

ParentBackColor

Gets or sets whether BackgroundColor is automatically updated when parent's BackgroundColor is changed.

ParentForeColor

Gets or sets whether ForegroundColor is automatically updated when parent's ForegroundColor is changed.

RelatedControl

Gets or sets the source control that called the popup.

SuppressKeyDown

Gets or sets a value indicating whether key down event for the controls which are not children of the popup control should be suppressed.

SuppressKeyPress

Gets or sets a value indicating whether key press event for the controls which are not children of the popup control should be suppressed.

SuppressParentMouse

Gets or sets a value indicating whether mouse events should be suppressed for the parent control.

SuppressParentMouseDown

Gets or sets a value indicating whether the parent control's mouse down events should be suppressed when this control is visible.

SuppressParentMouseUp

Gets or sets a value indicating whether the parent control's mouse up events should be suppressed when this control is visible.

UpdatePositionOnContainerResize

Gets or sets a value indicating whether the popup's position should be updated when the container is resized.

UseDefaultMinPopupWidth

Gets or sets a value indicating whether to use default minimal popup toolbar width.

Visible

Gets or sets a value indicating whether the control and all its child controls are displayed.

Methods

Close(PopupCloseReason?)

Closes popup window and raises Closed event.

CloseSiblings()

Closes sibling toolbars that are configured to close when a sibling is closed.

DefaultPaintDebug(PaintEventArgs)

Provides default debug related painting behavior for the control when the application is compiled in debug mode.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetDefaultParentBackColor()

Gets default value for ParentBackColor property.

GetDefaultParentForeColor()

Gets default value for ParentForeColor property.

GetPreferredSize(PreferredSizeContext)

Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.

HideWhenSiblingHidden(AbstractControl)

Determines whether the current control should be hidden when a specified sibling control is hidden. HideOnSiblingHide must be set to true for this method to be called.

HideWhenSiblingShown(AbstractControl)

Determines whether the current control should be hidden when a specified sibling control is shown. HideOnSiblingShow must be set to true for this method to be called.

OnAfterParentSizeChanged(object?, HandledEventArgs)

Called after the SizeChanged event of the Parent is raised.

OnBeforeParentKeyDown(object?, KeyEventArgs)

Called before the KeyDown event of the Parent is raised.

OnBeforeParentKeyPress(object?, KeyPressEventArgs)

Called before the KeyPress event of the Parent is raised.

OnFontChanged(EventArgs)

Called when the value of the Font property changes.

OnParentChanged(EventArgs)

Called when Parent property is changed.

OnSiblingVisibleChanged(AbstractControl)

Handles the event triggered when the visibility of a sibling control changes.

OnSizeChanged(EventArgs)

Called when the SizeChanged event.

OnToolClick(object?, EventArgs)

Handles the event when a tool is clicked.

OnVisibleChanged(EventArgs)

Called when the value of the Visible property changes.

SetLocationInContainer()

Sets the location of the control within its current container, optionally using last used alignment.

SetLocationInContainer(AbstractControl, PointD?, HVDropDownAlignment?)

Sets the location of the control within the specified container, optionally using a given position and alignment.

SetSizeAndLocationInContainer()

Sets the size and location of the control within its current container, optionally using a given position and last used alignment.

SetSizeAndLocationInContainer(AbstractControl, PointD?, HVDropDownAlignment?)

Sets the size and location of the control within the specified container, optionally using a given position and alignment.

ShowInContainer(AbstractControl, PointD?, HVDropDownAlignment?)

Displays the control as a popup within the specified container at the given position and alignment.

UpdateMinimumSize()

Updates the minimum size of the control based on its content and layout requirements.