Class PopupToolBar
Popup window with ToolBar control.
public class PopupToolBar : PopupWindow<ToolBar>, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, INotifyDataErrorInfo, IWindow, IControl, IDisposable, IWin32Window, ILayoutItem, IContextMenuHost
- Inheritance
-
PopupToolBar
- Implements
Constructors
- PopupToolBar()
Initializes a new instance of the PopupToolBar class.
Fields
- DefaultContentMargin
Represents the default margin applied to ToolBar, measured in device-independent units.
Properties
- CanShowPopup
Gets a value indicating whether a popup can be displayed.
- Default
Gets or sets default instance of the PopupToolBar.
- DefaultCloseEnabled
Gets default value of the CloseEnabled property.
- DefaultHasTitleBar
Gets default value of the HasTitleBar property.
- DefaultMaximizeEnabled
Gets default value of the MaximizeEnabled property.
- DefaultMinimizeEnabled
Gets default value of the MinimizeEnabled property.
- DefaultTopMost
Gets default value of the TopMost property.
- HideOnDeactivate
Gets or sets a value indicating whether a popup window disappears automatically when the user clicks mouse outside it or if it loses focus in any other way.
- IsHideOnDeactivateSuppressed
Indicates whether the suppression of the "Hide on Deactivate" behavior is enabled. Default is
false.
- 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.
- 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.
- ParentPopup
Gets or sets the parent PopupToolBar that contains this instance.
- ParentPopups
Gets an enumerable collection of parent PopupToolBar instances, starting from the immediate parent and traversing up the hierarchy.
- VisiblePopupToolbars
Gets a collection of currently visible popup toolbars.
Methods
- BeforeShowPopup()
Called before popup is shown.
- CreateMainControl()
Creates main control of the popup window.
- GetPreferredSize(PreferredSizeContext)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
- HideAllAfterThis()
Hides all visible popup toolbars that appear after the current instance in the sequence.
- HideOnlyThisPopup()
Hides the current popup without affecting the visibility of other popups.
- HideOtherPopups()
Hides all other visible pop-up toolbars except the current one.
- IsParentPopup(PopupToolBar)
Determines whether the specified PopupToolBar is a parent of this popup. This method checks the hierarchy of parent popups using the ParentPopups property.
- OnToolClick(object?, EventArgs)
Handles the event when a tool is clicked.
- OnVisibleChanged(EventArgs)
Called when the value of the Visible property changes.
- RestoreHideOnDeactivate()
Restores the default behavior of hiding PopupToolBar window on deactivation by decrementing the suppression. counter.
- SuppressHideOnDeactivate()
Prevents the application from hiding PopupToolBar when it is deactivated.