FormControlBehavior
This is a base class for a behavior that can be associated with a RadFormControlBase instance. The behavior defines the behavior and appearance of the form.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class FormControlBehavior : Component, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentFormControlBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
Creates an instance of the RadFormBehaviorBase class. This instance has no Form associated with it.
public FormControlBehavior()
Creates an instance of the RadFormBehavior class.
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)
An implementation of the IComponentTreeHandler which this behavior applies to
handleCreateChildItemsboolCreates an instance of the RadFormBehaviorBase class.
public FormControlBehavior(IComponentTreeHandler targetTreeHandler)
An implementation of the IComponentTreeHandler which this behavior applies to
Fields
protected IComponentTreeHandler targetHandler
Properties
Gets the width of the form border
public abstract Padding BorderWidth { get; }
Gets the height of the caption that is drawn by the behavior.
public abstract int CaptionHeight { get; }
Gets the margin that describes the size and position of the client area.
public abstract Padding ClientMargin { get; }
Gets the RadElement instance that represents the root element containing the hierarchy that builds the visual appearance of the form.
public abstract RadElement FormElement { get; }
Methods
public virtual CreateParams CreateParams(CreateParams parameters)
public virtual void FormHandleCreated()
public abstract void InvalidateElement(RadElement element, Rectangle bounds)
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Occurs when a form is associated with the behavior.
protected virtual void OnFormAssociated()