ClassPopupEditorBaseElement
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
PopupEditorBaseElement()
Declaration
protected PopupEditorBaseElement()
Properties
EditorContainsFocus
Declaration
[Browsable(false)]
public bool EditorContainsFocus { get; }
Property Value
IsPopupOpen
Declaration
[Browsable(false)]
public virtual bool IsPopupOpen { get; }
Property Value
Methods
ApplyThemeToPopup(RadElementTree, RadPopupControlBase)
Declaration
public static void ApplyThemeToPopup(RadElementTree elementTree, RadPopupControlBase popup)
Parameters
elementTree
popup
ApplyThemeToPopup(RadPopupControlBase)
Syncronizes the theme of the editor itself with the popup that is about to be displayed.
Declaration
protected virtual void ApplyThemeToPopup(RadPopupControlBase popup)
Parameters
popup
CanDisplayPopup()
Determines whether the popup form may be displayed.
ClosePopup()
Closes the popup with a RadPopupCloseReason.CloseCalled reason.
Declaration
public virtual void ClosePopup()
ClosePopup(RadPopupCloseReason)
Closes the popup with the provided reason for closing.
Declaration
public virtual void ClosePopup(RadPopupCloseReason reason)
Parameters
reason
the reason for the close operation as specified through RadPopupCloseReason enumeration.
ControlBoundingRectangleSize()
Gets the size of the ControlBoundingRectangle.
CreatePopupForm()
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.
Declaration
protected virtual RadPopupControlBase CreatePopupForm()
Returns
The popup instance.
DisposeManagedResources()
Releases managed resources used by this element.
Declaration
protected override void DisposeManagedResources()
Overrides
DisposePopupForm()
Declaration
protected void DisposePopupForm()
DisposePopupFormCore(bool)
Declaration
protected virtual void DisposePopupFormCore(bool dispose)
Parameters
dispose
GetInitialPopupSize()
Used to initialize the size of the popup when it is initially opened and the element tree is loaded.
GetPopupForm()
Gets a valid instance of the popup, that is properly initialized to work with the PopupEditorBaseElement.
Declaration
protected virtual RadPopupControlBase GetPopupForm()
Returns
The popup instance.
GetPopupLocation(RadPopupControlBase)
Gets the screen coordinated where the popup should be displayed.
Declaration
protected virtual Point GetPopupLocation(RadPopupControlBase popup)
Parameters
popup
Returns
GetPopupSize(RadPopupControlBase, bool)
Gets the display size for the popup.
Declaration
protected virtual Size GetPopupSize(RadPopupControlBase popup, bool measure)
Parameters
popup
The popup which size should be retrieved.
measure
True to perform explicit measure, false otherwise.
Returns
OnEditorKeyDown(KeyEventArgs)
Declaration
protected void OnEditorKeyDown(KeyEventArgs e)
Parameters
e
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed down over the item.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPopupClosed(RadPopupClosedEventArgs)
Declaration
protected virtual void OnPopupClosed(RadPopupClosedEventArgs e)
Parameters
e
OnPopupClosing(RadPopupClosingEventArgs)
Declaration
protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
Parameters
e
OnPopupOpened(EventArgs)
Declaration
protected virtual void OnPopupOpened(EventArgs args)
Parameters
args
OnPopupOpening(CancelEventArgs)
Declaration
protected virtual void OnPopupOpening(CancelEventArgs e)
Parameters
e
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
ProcessPopupTabKey(KeyEventArgs)
Declaration
protected virtual void ProcessPopupTabKey(KeyEventArgs e)
Parameters
e
ShowPopup()
Displays the popup on the screen.
Declaration
public virtual void ShowPopup()
ShowPopupCore(RadPopupControlBase)
Performs the core popup display logic.
Declaration
protected virtual void ShowPopupCore(RadPopupControlBase popup)
Parameters
popup
The popup form that is about to be displayed.
TooglePopupState()
Closes the popup if it is open, or shows the popup if it is closed.
Declaration
protected virtual void TooglePopupState()
UnwirePopupFormEvents(RadPopupControlBase)
Declaration
protected virtual void UnwirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
UpdatePopupMinMaxSize(RadPopupControlBase)
Applies any Min/Max size restrictions to the popup form.
Declaration
protected virtual void UpdatePopupMinMaxSize(RadPopupControlBase popup)
Parameters
popup
WirePopupFormEvents(RadPopupControlBase)
Declaration
protected virtual void WirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
Events
PopupClosed
Declaration
public virtual event RadPopupClosedEventHandler PopupClosed
Event Value
PopupClosing
Declaration
public virtual event RadPopupClosingEventHandler PopupClosing
Event Value
PopupOpened
Declaration
public virtual event EventHandler PopupOpened
Event Value
PopupOpening
Declaration
public virtual event CancelEventHandler PopupOpening
Event Value