Class RadPopupEditorElement
Represents a popup editor element that provides a drop-down style interface with an arrow button and text editing capabilities.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadPopupEditorElement : PopupEditorBaseElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Constructors
RadPopupEditorElement()
Initializes a new instance of the RadPopupEditorElement class.
Declaration
public RadPopupEditorElement()
Properties
ArrowButtonElement
Gets the arrow button element used to toggle the popup state.
Declaration
public RadArrowButtonElement ArrowButtonElement { get; }
Property Value
RadArrowButtonElement
|
ContainerElement
Gets the container element that hosts the text box inside the popup editor.
Declaration
public virtual RadDropDownListEditableAreaElement ContainerElement { get; }
Property Value
RadDropDownListEditableAreaElement
|
DropDownMaxSize
Gets or sets the maximum size constraints for the drop-down popup.
Declaration
public Size DropDownMaxSize { get; set; }
Property Value
System.Drawing.Size
|
DropDownMinSize
Gets or sets the minimum size constraints for the drop-down popup.
Declaration
public Size DropDownMinSize { get; set; }
Property Value
System.Drawing.Size
|
DropDownSizingMode
DropDownStyle
Gets or sets the style of the drop-down list which determines whether the text area is editable or read-only.
Declaration
public virtual RadDropDownStyle DropDownStyle { get; set; }
Property Value
RadDropDownStyle
|
PopupContainerForm
Gets the popup container form that hosts the popup content.
Declaration
public RadPopupContainerForm PopupContainerForm { get; }
Property Value
RadPopupContainerForm
|
Text
Gets or sets the text associated with this item.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TextBoxElement
Gets the text box element that provides text editing functionality within the popup editor.
Declaration
public virtual RadTextBoxElement TextBoxElement { get; }
Property Value
RadTextBoxElement
|
TextBoxVisibility
Gets or sets the visibility of the text box element within the popup editor.
Declaration
public virtual ElementVisibility TextBoxVisibility { get; set; }
Property Value
ElementVisibility
|
ThemeEffectiveType
Gets the effective theme type for this element.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
System.Type
|
Overrides
Methods
CreateArrowButtonElement()
Creates the arrow button element for the popup editor.
Declaration
protected virtual RadArrowButtonElement CreateArrowButtonElement()
Returns
RadArrowButtonElement
A new instance of RadArrowButtonElement. |
CreateChildElements()
Creates the child elements of the popup editor element including the arrow button, border, fill, and container elements.
Declaration
protected override void CreateChildElements()
Overrides
CreatePopupForm()
Creates and configures the popup form control for the editor.
Declaration
protected override RadPopupControlBase CreatePopupForm()
Returns
RadPopupControlBase
The configured RadPopupControlBase instance. |
Overrides
DisposeManagedResources()
Disposes the managed resources used by the popup editor element.
Declaration
protected override void DisposeManagedResources()
Overrides
GetPopupSize(RadPopupControlBase, Boolean)
Gets the desired size for the popup control based on the current configuration and sizing mode.
Declaration
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
Parameters
RadPopupControlBase
popup
The popup control to calculate size for. |
System.Boolean
measure
Indicates whether to measure the popup. |
Returns
System.Drawing.Size
The calculated System.Drawing.Size for the popup. |
Overrides
OnPopupClosing(RadPopupClosingEventArgs)
Called when the popup is closing and allows for cancellation of the close operation.
Declaration
protected override void OnPopupClosing(RadPopupClosingEventArgs e)
Parameters
RadPopupClosingEventArgs
e
The RadPopupClosingEventArgs that contains the event data. |
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value changes and handles specific property changes like RightToLeft.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The RadPropertyChangedEventArgs that contains the event data. |
Overrides
PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
Performs custom painting after child elements have been painted, including focus indication when appropriate.
Declaration
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics context to paint on. |
System.Drawing.Rectangle
clipRectange
The clipping rectangle for the paint operation. |
System.Single
angle
The rotation angle for the paint operation. |
System.Drawing.SizeF
scale
The scale factor for the paint operation. |
Overrides
ShowPopup()
Shows the popup and configures its properties and focus behavior.
Declaration
public override void ShowPopup()
Overrides
UnwireEvents()
Unwires the events for the popup editor element.
Declaration
protected virtual void UnwireEvents()
UpdatePopupMinMaxSize(RadPopupControlBase)
Updates the minimum and maximum size constraints for the popup control.
Declaration
protected override void UpdatePopupMinMaxSize(RadPopupControlBase popup)
Parameters
RadPopupControlBase
popup
The popup control to update size constraints for. |
Overrides
WireEvents()
Wires the necessary events for the popup editor element.
Declaration
protected virtual void WireEvents()