ClassRadPopupEditorElement
Represents a popup editor element that provides a drop-down style interface with an arrow button and text editing capabilities.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPopupEditorElement : PopupEditorBaseElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementEditorBaseElementPopupEditorBaseElementRadPopupEditorElement
Derived Classes:
Implements:
Inherited Members
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
ContainerElement
Gets the container element that hosts the text box inside the popup editor.
Declaration
[Browsable(false)]
public virtual RadDropDownListEditableAreaElement ContainerElement { get; }
Property Value
DropDownMaxSize
Gets or sets the maximum size constraints for the drop-down popup.
Declaration
[Browsable(true)]
public Size DropDownMaxSize { get; set; }
Property Value
DropDownMinSize
Gets or sets the minimum size constraints for the drop-down popup.
Declaration
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Property Value
DropDownSizingMode
Declaration
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Property Value
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
PopupContainerForm
Gets the popup container form that hosts the popup content.
Declaration
public RadPopupContainerForm PopupContainerForm { get; }
Property Value
Text
Gets or sets the text associated with this item.
Declaration
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Property Value
Overrides
TextBoxElement
Gets the text box element that provides text editing functionality within the popup editor.
Declaration
[Browsable(false)]
public virtual RadTextBoxElement TextBoxElement { get; }
Property Value
TextBoxVisibility
Gets or sets the visibility of the text box element within the popup editor.
Declaration
public virtual ElementVisibility TextBoxVisibility { get; set; }
Property Value
ThemeEffectiveType
Gets the effective theme type for this element.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
Overrides
Methods
CreateArrowButtonElement()
Creates the arrow button element for the popup editor.
Declaration
protected virtual RadArrowButtonElement CreateArrowButtonElement()
Returns
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
The configured RadPopupControlBase instance.
Overrides
DisposeManagedResources()
Disposes the managed resources used by the popup editor element.
Declaration
protected override void DisposeManagedResources()
Overrides
GetPopupSize(RadPopupControlBase, bool)
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
popup
The popup control to calculate size for.
measure
Indicates whether to measure the popup.
Returns
The calculated 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
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
e
The RadPropertyChangedEventArgs that contains the event data.
Overrides
PostPaintChildren(IGraphics, Rectangle, float, 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
graphics
The graphics context to paint on.
clipRectange
The clipping rectangle for the paint operation.
angle
The rotation angle for the paint operation.
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
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()