PopupEditor
A custom control that provides a combination of a text display section and a visual that provides a mechanism to display a popup window that can host any content inside it for display.
public class PopupEditor : Control
Inherits from / implements: Control
Members at a glance
PopupEditor | Initializes a new instance of the PopupEditor class. |
BorderThickness | Gets or sets the border thickness. |
DisplayLocation | Gets or sets the display location. |
DisplayText | Gets or sets the display text. |
DisplayTextVisualToTotalSizeRatio | Gets or sets the ratio of sizes between its display text visual to its total size ratio. |
DropDownContentPadding | Gets or sets the dropdown content padding. |
DropDownResizeGripperColor | Gets or sets the color of the dropdown resize gripper. |
DropDownResizeSectionBorderColor | Gets or sets the color of the dropdown resize section border. |
DropDownResizeSectionFillColor | Gets or sets the color of the dropdown resize section fill. |
DropDownSize | Gets or sets the size of the drop-down's content area, in logical (96 DPI) units. |
EnableDropDownResizing | Gets or sets a value indicating whether the control should enable resizing the drop-down view. |
PopupCommandVisualBorderColor | Gets or sets the color of the popup command visual border. |
PopupCommandVisualBorderColorOnHover | Gets or sets the popup command visual border color on hover. |
PopupCommandVisualBorderColorOnPressed | Gets or sets the popup command visual border color when it is on its pressed state. |
PopupCommandVisualFont | Gets or sets the popup command visual's font. |
PopupCommandVisualHoverStateImage | Gets or sets the popup command visual hover state image. |
PopupCommandVisualHoveredBackColor | Gets or sets the backcolor of the popup command visual when it is on its hovered state. |
PopupCommandVisualMaximumInternalImageDrawingSize | Gets or sets the maximum size for drawing the internal image for the PopupCommandVisual, in logical (96 DPI) units - scaled to the display as the button paints. The default is 32 x 32. |
PopupCommandVisualNormalBackColor | Gets or sets the backcolor of the popup command visual when it is on its normal (default) state. |
PopupCommandVisualNormalStateImage | Gets or sets the popup command visual normal state image. |
PopupCommandVisualPressedBackColor | Gets or sets the backcolor of the popup command visual when it is on its pressed state. |
PopupCommandVisualPressedStateImage | Gets or sets the popup command visual pressed state image. |
PopupCommandVisualShouldApplyPaddingWhilePositioningImage | Gets or sets a value indicating whether the popup command visual should apply padding while positioning its image. |
PopupCommandVisualText | Gets or sets the popup command visual's text. |
PopupCommandVisualTextForeColor | Gets or sets the color of the popup command visual text foreground. |
PopupContentHost | Gets or sets the popup content host. |
ShouldDrawBidirectionalResizeGripper | Gets or sets a value indicating whether [should draw bidirectional resize gripper]. |
ShouldDrawDropDownResizeSectionWith3DBorder | Gets or sets a value indicating whether [should draw dropdown resize section with3 d border]. |
ShouldDrawDropShadow | Gets or sets a value indicating whether the control should draw drop shadow. |
ShouldDrawVerticalResizeGripper | Gets or sets a value indicating whether [should draw vertical resize gripper]. |
ShouldRememberUserSizedDropDownSize | Gets or sets a value indicating whether the control should remember the size for the drop-down setup by the user at runtime. |
TextDisplayVisualBackColor | Gets or sets the text display visual back color. |
TextDisplayVisualBorderColor | Gets or sets the text display visual border color. |
TextDisplayVisualBorderThickness | Gets or sets the text display visual border thickness. |
TextDisplayVisualFont | Gets or sets the text display visual's font. |
TextDisplayVisualTextForeColor | Gets or sets the color of the text display visual text foreground. |
ClosePopup | Closes the popup. |
OnDropDownPopupClosed | Called once the drop-down has left the screen. |
OnDropDownPopupClosing | Called as the drop-down begins to close, before it leaves the screen. |
OnDropDownPopupOpened | Called once the drop-down is on screen. Override to react to it without attaching to the popup yourself. |
OnHandleCreated | Raises the HandleCreated event. |
OnSizeChanged | Raises the SizeChanged event. |
Show | Displays the popup view to the user. |
DropDownPopupClosed | Occurs when the dropped-down popup has closed. |
DropDownPopupClosing | Occurs when the dropped-down popup is closing. |
DropDownPopupOpened | Occurs when the drop-down popup has opened. |
Constructors
PopupEditor
Initializes a new instance of the PopupEditor class.
Properties
BorderThickness
Gets or sets the border thickness.
DisplayLocation
Gets or sets the display location.
Value. The display location.
DisplayText
Gets or sets the display text.
Value. The display text.
DisplayTextVisualToTotalSizeRatio
Gets or sets the ratio of sizes between its display text visual to its total size ratio.
DropDownContentPadding
Gets or sets the dropdown content padding.
Value. The dropdown content padding.
DropDownResizeGripperColor
Gets or sets the color of the dropdown resize gripper.
Value. The color of the dropdown resize gripper.
DropDownResizeSectionBorderColor
Gets or sets the color of the dropdown resize section border.
Value. The color of the dropdown resize section border.
DropDownResizeSectionFillColor
Gets or sets the color of the dropdown resize section fill.
Value. The color of the dropdown resize section fill.
DropDownSize
Gets or sets the size of the drop-down's content area, in logical (96 DPI) units.
Value. The size of the dropdown.
Empty, the default, opens the drop-down at the size of PopupContentHost as it stands. When the user resizes the drop-down and ShouldRememberUserSizedDropDownSize is set, the size they chose is stored here and used next time.EnableDropDownResizing
Gets or sets a value indicating whether the control should enable resizing the drop-down view.
PopupCommandVisualBorderColor
Gets or sets the color of the popup command visual border.
Value. The color of the popup command visual border.
PopupCommandVisualBorderColorOnHover
Gets or sets the popup command visual border color on hover.
Value. The popup command visual border color on hover.
PopupCommandVisualBorderColorOnPressed
Gets or sets the popup command visual border color when it is on its pressed state.
Value. The popup command visual border color when it is on its pressed state.
PopupCommandVisualFont
Gets or sets the popup command visual's font.
PopupCommandVisualHoverStateImage
Gets or sets the popup command visual hover state image.
Value. The popup command visual hover state image.
PopupCommandVisualHoveredBackColor
Gets or sets the backcolor of the popup command visual when it is on its hovered state.
Value. The backcolor of the popup command visual when it is on its hovered state.
PopupCommandVisualMaximumInternalImageDrawingSize
Gets or sets the maximum size for drawing the internal image for the PopupCommandVisual, in logical (96 DPI) units - scaled to the display as the button paints. The default is 32 x 32.
PopupCommandVisualNormalBackColor
Gets or sets the backcolor of the popup command visual when it is on its normal (default) state.
Value. The backcolor of the popup command visual when it is on its normal (default) state.
PopupCommandVisualNormalStateImage
Gets or sets the popup command visual normal state image.
Value. The popup command visual normal state image.
PopupCommandVisualPressedBackColor
Gets or sets the backcolor of the popup command visual when it is on its pressed state.
Value. The backcolor of the popup command visual when it is on its pressed state.
PopupCommandVisualPressedStateImage
Gets or sets the popup command visual pressed state image.
Value. The popup command visual pressed state image.
PopupCommandVisualShouldApplyPaddingWhilePositioningImage
Gets or sets a value indicating whether the popup command visual should apply padding while positioning its image.
PopupCommandVisualText
Gets or sets the popup command visual's text.
PopupCommandVisualTextForeColor
Gets or sets the color of the popup command visual text foreground.
Value. The color of the popup command visual text foreground.
PopupContentHost
Gets or sets the popup content host.
Value. The popup content host.
ShouldDrawBidirectionalResizeGripper
Gets or sets a value indicating whether [should draw bidirectional resize gripper].
Value. true if [should draw bidirectional resize gripper]; otherwise, false .
ShouldDrawDropDownResizeSectionWith3DBorder
Gets or sets a value indicating whether [should draw dropdown resize section with3 d border].
Value. true if [should draw dropdown resize section with3 d border]; otherwise, false .
ShouldDrawDropShadow
Gets or sets a value indicating whether the control should draw drop shadow.
ShouldDrawVerticalResizeGripper
Gets or sets a value indicating whether [should draw vertical resize gripper].
Value. true if [should draw vertical resize gripper]; otherwise, false .
ShouldRememberUserSizedDropDownSize
Gets or sets a value indicating whether the control should remember the size for the drop-down setup by the user at runtime.
TextDisplayVisualBackColor
Gets or sets the text display visual back color.
TextDisplayVisualBorderColor
Gets or sets the text display visual border color.
TextDisplayVisualBorderThickness
Gets or sets the text display visual border thickness.
TextDisplayVisualFont
Gets or sets the text display visual's font.
TextDisplayVisualTextForeColor
Gets or sets the color of the text display visual text foreground.
Methods
ClosePopup
Closes the popup.
OnDropDownPopupClosed
Called once the drop-down has left the screen.
OnDropDownPopupClosing
Called as the drop-down begins to close, before it leaves the screen.
OnDropDownPopupOpened
Called once the drop-down is on screen. Override to react to it without attaching to the popup yourself.
OnHandleCreated
Raises the HandleCreated event.
- e
- An
EventArgsthat contains the event data.
OnSizeChanged
Raises the SizeChanged event.
- e
- An
EventArgsthat contains the event data.
Show
Displays the popup view to the user.
Events
DropDownPopupClosed
Occurs when the dropped-down popup has closed.
DropDownPopupClosing
Occurs when the dropped-down popup is closing.
DropDownPopupOpened
Occurs when the drop-down popup has opened.