skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class 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.

Inheritance
System.Object
FormControlBehavior
ThemedFormBehavior
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public abstract class FormControlBehavior : Component

Constructors

FormControlBehavior()

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

Declaration
public FormControlBehavior()

FormControlBehavior(IComponentTreeHandler)

Creates an instance of the RadFormBehaviorBase class.

Declaration
public FormControlBehavior(IComponentTreeHandler targetTreeHandler)
Parameters
IComponentTreeHandler targetTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

FormControlBehavior(IComponentTreeHandler, Boolean)

Creates an instance of the RadFormBehavior class.

Declaration
public FormControlBehavior(IComponentTreeHandler targetTreeHandler, bool handleCreateChildItems)
Parameters
IComponentTreeHandler targetTreeHandler

An implementation of the IComponentTreeHandler which this behavior applies to

System.Boolean handleCreateChildItems

Fields

targetHandler

Declaration
protected IComponentTreeHandler targetHandler
Field Value
IComponentTreeHandler

Properties

BorderWidth

Gets the width of the form border

Declaration
public abstract Padding BorderWidth { get; }
Property Value
System.Windows.Forms.Padding

CaptionHeight

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

Declaration
public abstract int CaptionHeight { get; }
Property Value
System.Int32

ClientMargin

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

Declaration
public abstract Padding ClientMargin { get; }
Property Value
System.Windows.Forms.Padding

FormElement

Gets the RadElement instance that represents the root element containing the hierarchy that builds the visual appearance of the form.

Declaration
public abstract RadElement FormElement { get; }
Property Value
RadElement

Methods

CallBaseWndProc(ref Message)

Declaration
protected void CallBaseWndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

CallDefWndProc(ref Message)

Declaration
protected void CallDefWndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

CreateChildItems(RadElement)

Declaration
public virtual void CreateChildItems(RadElement parent)
Parameters
RadElement parent

CreateParams(CreateParams)

Declaration
public virtual CreateParams CreateParams(CreateParams parameters)
Parameters
System.Windows.Forms.CreateParams parameters

Returns
System.Windows.Forms.CreateParams

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

FormHandleCreated()

Declaration
public virtual void FormHandleCreated()

HandleWndProc(ref Message)

Declaration
public abstract bool HandleWndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

Returns
System.Boolean

InvalidateElement(RadElement, Rectangle)

Declaration
public abstract void InvalidateElement(RadElement element, Rectangle bounds)
Parameters
RadElement element

System.Drawing.Rectangle bounds

OnAssociatedFormPaint(PaintEventArgs)

Declaration
public virtual bool OnAssociatedFormPaint(PaintEventArgs args)
Parameters
System.Windows.Forms.PaintEventArgs args

Returns
System.Boolean

OnAssociatedFormPaintBackground(PaintEventArgs)

Declaration
public virtual bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Parameters
System.Windows.Forms.PaintEventArgs args

Returns
System.Boolean

OnFormAssociated()

Occurs when a form is associated with the behavior.

Declaration
protected virtual void OnFormAssociated()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.