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
Initializes a new instance of the RadPopupEditorElement class.
public RadPopupEditorElement()
Properties
Gets the arrow button element used to toggle the popup state.
public RadArrowButtonElement ArrowButtonElement { get; }
Gets the container element that hosts the text box inside the popup editor.
[Browsable(false)]
public virtual RadDropDownListEditableAreaElement ContainerElement { get; }
Gets or sets the maximum size constraints for the drop-down popup.
[Browsable(true)]
public Size DropDownMaxSize { get; set; }
Gets or sets the minimum size constraints for the drop-down popup.
[Browsable(true)]
public Size DropDownMinSize { get; set; }
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Gets or sets the style of the drop-down list which determines whether the text area is editable or read-only.
public virtual RadDropDownStyle DropDownStyle { get; set; }
Gets the popup container form that hosts the popup content.
public RadPopupContainerForm PopupContainerForm { get; }
Gets or sets the text associated with this item.
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Overrides:
Gets the text box element that provides text editing functionality within the popup editor.
[Browsable(false)]
public virtual RadTextBoxElement TextBoxElement { get; }
Gets or sets the visibility of the text box element within the popup editor.
public virtual ElementVisibility TextBoxVisibility { get; set; }
Gets the effective theme type for this element.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Creates the arrow button element for the popup editor.
protected virtual RadArrowButtonElement CreateArrowButtonElement()
A new instance of RadArrowButtonElement.
Creates the child elements of the popup editor element including the arrow button, border, fill, and container elements.
protected override void CreateChildElements()
Overrides:
Creates and configures the popup form control for the editor.
protected override RadPopupControlBase CreatePopupForm()
The configured RadPopupControlBase instance.
Overrides:
Disposes the managed resources used by the popup editor element.
protected override void DisposeManagedResources()
Overrides:
Gets the desired size for the popup control based on the current configuration and sizing mode.
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
The popup control to calculate size for.
measureboolIndicates whether to measure the popup.
Returns:The calculated Size for the popup.
Overrides:
Called when the popup is closing and allows for cancellation of the close operation.
protected override void OnPopupClosing(RadPopupClosingEventArgs e)
The RadPopupClosingEventArgs that contains the event data.
Overrides:
Called when a property value changes and handles specific property changes like RightToLeft.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs that contains the event data.
Overrides:
Performs custom painting after child elements have been painted, including focus indication when appropriate.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
The graphics context to paint on.
clipRectangeRectangleThe clipping rectangle for the paint operation.
anglefloatThe rotation angle for the paint operation.
scaleSizeFThe scale factor for the paint operation.
Overrides:
Shows the popup and configures its properties and focus behavior.
public override void ShowPopup()
Overrides:
Unwires the events for the popup editor element.
protected virtual void UnwireEvents()
Updates the minimum and maximum size constraints for the popup control.
protected override void UpdatePopupMinMaxSize(RadPopupControlBase popup)
The popup control to update size constraints for.
Overrides:
Wires the necessary events for the popup editor element.
protected virtual void WireEvents()