New to Telerik UI for WinFormsStart a free 30-day trial

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

Constructors

Creates an instance of the RadFormBehaviorBase class. This instance has no Form associated with it.

C#
public FormControlBehavior()

Creates an instance of the RadFormBehavior class.

C#
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)
Parameters:targetTreeHandlerIComponentTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

handleCreateChildItemsbool

Creates an instance of the RadFormBehaviorBase class.

C#
public FormControlBehavior(IComponentTreeHandler targetTreeHandler)
Parameters:targetTreeHandlerIComponentTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

Fields

C#
protected IComponentTreeHandler targetHandler

Properties

Gets the width of the form border

C#
public abstract Padding BorderWidth { get; }

Gets the height of the caption that is drawn by the behavior.

C#
public abstract int CaptionHeight { get; }

Gets the margin that describes the size and position of the client area.

C#
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.

C#
public abstract RadElement FormElement { get; }

Methods

C#
protected void CallBaseWndProc(ref Message m)
Parameters:mMessage
C#
protected void CallDefWndProc(ref Message m)
Parameters:mMessage
C#
public virtual void CreateChildItems(RadElement parent)
Parameters:parentRadElement
C#
public virtual CreateParams CreateParams(CreateParams parameters)
Parameters:parametersCreateParamsReturns:

CreateParams

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: Component.Dispose(bool)

C#
public virtual void FormHandleCreated()
C#
public abstract bool HandleWndProc(ref Message m)
Parameters:mMessageReturns:

bool

C#
public abstract void InvalidateElement(RadElement element, Rectangle bounds)
Parameters:elementRadElementboundsRectangle
C#
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)
Parameters:argsPaintEventArgsReturns:

bool

C#
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Parameters:argsPaintEventArgsReturns:

bool

Occurs when a form is associated with the behavior.

C#
protected virtual void OnFormAssociated()