Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class PopupEditorBaseElement : EditorBaseElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementEditorBaseElementPopupEditorBaseElement...
Derived Classes:
Implements:
Inherited Members
Constructors
protected PopupEditorBaseElement()
Properties
[Browsable(false)]
public bool EditorContainsFocus { get; }
[Browsable(false)]
public virtual bool IsPopupOpen { get; }
public int OwnerOffset { get; set; }
Methods
public static void ApplyThemeToPopup(RadElementTree elementTree, RadPopupControlBase popup)
Syncronizes the theme of the editor itself with the popup that is about to be displayed.
protected virtual void ApplyThemeToPopup(RadPopupControlBase popup)
Determines whether the popup form may be displayed.
Closes the popup with a RadPopupCloseReason.CloseCalled reason.
public virtual void ClosePopup()
Closes the popup with the provided reason for closing.
public virtual void ClosePopup(RadPopupCloseReason reason)
the reason for the close operation as specified through RadPopupCloseReason enumeration.
Gets the size of the ControlBoundingRectangle.
Creates the popup instance. You have to override this method in order to provide a popup that is specialized by its content. Example: In a combo box you have to override and provide a specialized class that contains and handles the listbox element.
protected virtual RadPopupControlBase CreatePopupForm()
The popup instance.
Releases managed resources used by this element.
protected override void DisposeManagedResources()
Overrides:
protected void DisposePopupForm()
Used to initialize the size of the popup when it is initially opened and the element tree is loaded.
Gets a valid instance of the popup, that is properly initialized to work with the PopupEditorBaseElement.
protected virtual RadPopupControlBase GetPopupForm()
The popup instance.
Gets the screen coordinated where the popup should be displayed.
protected virtual Point GetPopupLocation(RadPopupControlBase popup)
Gets the display size for the popup.
protected virtual Size GetPopupSize(RadPopupControlBase popup, bool measure)
The popup which size should be retrieved.
measureboolTrue to perform explicit measure, false otherwise.
Returns:Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
protected virtual void OnPopupClosed(RadPopupClosedEventArgs e)
protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property changed event arguments.
Overrides:
Displays the popup on the screen.
public virtual void ShowPopup()
Performs the core popup display logic.
protected virtual void ShowPopupCore(RadPopupControlBase popup)
The popup form that is about to be displayed.
Closes the popup if it is open, or shows the popup if it is closed.
protected virtual void TooglePopupState()
protected virtual void UnwirePopupFormEvents(RadPopupControlBase popup)
Applies any Min/Max size restrictions to the popup form.
protected virtual void UpdatePopupMinMaxSize(RadPopupControlBase popup)
protected virtual void WirePopupFormEvents(RadPopupControlBase popup)
Events
public virtual event RadPopupClosedEventHandler PopupClosed
public virtual event RadPopupClosingEventHandler PopupClosing
public virtual event EventHandler PopupOpened
public virtual event CancelEventHandler PopupOpening