Class PopupControl<T>
Represents a popup control that hosts a specific type of content control.
public class PopupControl<T> : PopupControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo where T : AbstractControl, new()
Type Parameters
TThe type of the content control hosted by the popup. The type must derive from AbstractControl and have a parameterless constructor.
- Inheritance
-
PopupControl<T>
- Implements
- Derived
Remarks
The PopupControl<T> class provides a generic implementation for creating and managing a popup control that hosts a specific type of content control. The content control is automatically instantiated and configured to inherit font settings and parent relationships from the popup.
Constructors
- PopupControl()
Initializes a new instance of the PopupControl<T> class.
Properties
- Content
Gets the content control of the popup, cast to the specified type.
Methods
- CreateContent()
Creates and returns a new instance of the control represented by the generic type parameter
T.