skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact 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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free 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 RadNonClientUIBaseFormBehavior<T>

Inheritance
System.Object
FormControlBehavior
ThemedFormBehavior
RadNonClientUIBaseFormBehavior<T>
RadRibbonFormBehavior
RadTabbedFormBehavior
RadToolbarFormBehavior
Inherited Members
ThemedFormBehavior.GetMappedWindowPoint(Point)
ThemedFormBehavior.GetMaximumFormHeightAccordingToCurrentScreen()
ThemedFormBehavior.OnWindowStateChanged(Int32, Int32)
ThemedFormBehavior.RefreshNC()
ThemedFormBehavior.InvalidateNC(Rectangle)
ThemedFormBehavior.OnNCPaint(Graphics)
ThemedFormBehavior.PaintElement(IGraphics, Rectangle, VisualElement)
ThemedFormBehavior.InvalidateElement(RadElement, Rectangle)
ThemedFormBehavior.IsMaximized
ThemedFormBehavior.IsMinimized
ThemedFormBehavior.IsNormal
ThemedFormBehavior.CurrentFormState
ThemedFormBehavior.IsMdiChildMaximized
ThemedFormBehavior.FormMdiClient
ThemedFormBehavior.IsMenuInForm
ThemedFormBehavior.MainMenuInForm
ThemedFormBehavior.MaximizedMDIChild
ThemedFormBehavior.TopResizeFrame
ThemedFormBehavior.TopLeftResizeFrame
ThemedFormBehavior.LeftResizeFrame
ThemedFormBehavior.BottomLeftResizeFrame
ThemedFormBehavior.BottomResizeFrame
ThemedFormBehavior.BottomRightResizeFrame
ThemedFormBehavior.RightResizeFrame
ThemedFormBehavior.TopRightResizeFrame
ThemedFormBehavior.CaptionFrame
ThemedFormBehavior.LeftBorderFrame
ThemedFormBehavior.BottomBorderFrame
ThemedFormBehavior.RightBorderFrame
ThemedFormBehavior.ClientFrame
ThemedFormBehavior.CurrentFormParams
ThemedFormBehavior.Form
FormControlBehavior.targetHandler
FormControlBehavior.CallBaseWndProc(Message)
FormControlBehavior.CallDefWndProc(Message)
FormControlBehavior.OnAssociatedFormPaint(PaintEventArgs)
FormControlBehavior.BorderWidth
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public abstract class RadNonClientUIBaseFormBehavior<T> : ThemedFormBehavior where T : RadNonClientUIControl
Type Parameters
T

Constructors

RadNonClientUIBaseFormBehavior()

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

Declaration
public RadNonClientUIBaseFormBehavior()

RadNonClientUIBaseFormBehavior(IComponentTreeHandler)

Creates an instance of the "RadNonClientUIBaseFormBehavior" class. The IComponentTreeHandler implementation which this behavior is associated with.

Declaration
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler)
Parameters
IComponentTreeHandler treeHandler

RadNonClientUIBaseFormBehavior(IComponentTreeHandler, Boolean)

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

Declaration
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)
Parameters
IComponentTreeHandler treeHandler

The associated IComponentTreeHandler implementation.

System.Boolean shouldHandleCreateChildItems

Determines whether the behavior handles the CreateChildItems call.

Fields

capturedNCItem

Declaration
protected RadElement capturedNCItem
Field Value
RadElement

MaxFormBorderHeight

Declaration
protected const int MaxFormBorderHeight = 4
Field Value
System.Int32

RegionHeightEllipse

Declaration
protected const int RegionHeightEllipse = 9
Field Value
System.Int32

Properties

AllowTheming

Gets or sets value indicating whether the NC control is drawn over the Aero glass under Vista or later versions of Windows.

Declaration
public override bool AllowTheming { get; set; }
Property Value
System.Boolean

Overrides
ThemedFormBehavior.AllowTheming

CaptionHeight

Returns a zero for the caption height.

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

Overrides
FormControlBehavior.CaptionHeight

CaptionTextBounds

Declaration
public override Rectangle CaptionTextBounds { get; }
Property Value
System.Drawing.Rectangle

Overrides
ThemedFormBehavior.CaptionTextBounds

ClientMargin

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

Overrides
FormControlBehavior.ClientMargin

CompositionEffectsEnabled

Gets a boolean value indicating whether composition effects are enabled for the form.

Declaration
public bool CompositionEffectsEnabled { get; }
Property Value
System.Boolean

CompositionEnabled

Gets a value indicating whether composition effects are enabled for the Operating System.

Declaration
protected bool CompositionEnabled { get; }
Property Value
System.Boolean

FormElement

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

Overrides
FormControlBehavior.FormElement

IconBounds

Declaration
public override Rectangle IconBounds { get; }
Property Value
System.Drawing.Rectangle

Overrides
ThemedFormBehavior.IconBounds

MenuBounds

Declaration
public override Rectangle MenuBounds { get; }
Property Value
System.Drawing.Rectangle

Overrides
ThemedFormBehavior.MenuBounds

NonClientUIControl

Declaration
protected virtual T NonClientUIControl { get; set; }
Property Value
T

SystemButtonsBounds

Declaration
public override Rectangle SystemButtonsBounds { get; }
Property Value
System.Drawing.Rectangle

Overrides
ThemedFormBehavior.SystemButtonsBounds

TopCompositionMargin

Gets an integer representing the top client margin of the form when composition is enabled.

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

Methods

AdjustBehaviorForCompositionSate()

Declaration
protected abstract void AdjustBehaviorForCompositionSate()

AdjustFormElementForFormState(Nullable<Int32>)

Declaration
protected abstract void AdjustFormElementForFormState(int? currentFormState)
Parameters
System.Nullable<System.Int32> currentFormState

AdjustFormIconVisibility()

Declaration
public virtual void AdjustFormIconVisibility()

AdjustSystemButtonsForStyle()

Declaration
protected void AdjustSystemButtonsForStyle()

CanHandleParentNotify(ref Message)

Declaration
protected virtual bool CanHandleParentNotify(ref Message m)
Parameters
System.Windows.Forms.Message m

Returns
System.Boolean

CanHandleWndProc()

Declaration
protected virtual bool CanHandleWndProc()
Returns
System.Boolean

CreateChildItems(RadElement)

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

Overrides
FormControlBehavior.CreateChildItems(RadElement)

CreateFormElement()

Declaration
protected abstract RadElement CreateFormElement()
Returns
RadElement

CreateParams(CreateParams)

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

Returns
System.Windows.Forms.CreateParams

Overrides
ThemedFormBehavior.CreateParams(CreateParams)

Dispose(Boolean)

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

Overrides
ThemedFormBehavior.Dispose(Boolean)

DisposeNonClientUIControlImpls()

Declaration
protected virtual void DisposeNonClientUIControlImpls()

ExtendFrameIntoClientArea()

Declaration
protected virtual void ExtendFrameIntoClientArea()

Form_ControlAdded(Object, ControlEventArgs)

Declaration
protected virtual void Form_ControlAdded(object sender, ControlEventArgs e)
Parameters
System.Object sender

System.Windows.Forms.ControlEventArgs e

Form_Load(Object, EventArgs)

Declaration
protected virtual void Form_Load(object sender, EventArgs e)
Parameters
System.Object sender

System.EventArgs e

Form_SizeChanged(Object, EventArgs)

Declaration
protected virtual void Form_SizeChanged(object sender, EventArgs e)
Parameters
System.Object sender

System.EventArgs e

FormHandleCreated()

Declaration
public override void FormHandleCreated()
Overrides
FormControlBehavior.FormHandleCreated()

HandleWndProc(ref Message)

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

Returns
System.Boolean

Overrides
ThemedFormBehavior.HandleWndProc(ref Message)

InitializeDummyMenuStrip()

Declaration
protected virtual void InitializeDummyMenuStrip()

InitializeNonClientUIControl()

Declaration
protected abstract void InitializeNonClientUIControl()

IsApplicationMenu()

Declaration
protected virtual bool IsApplicationMenu()
Returns
System.Boolean

NCFromClientCoordinates(Point)

Declaration
protected virtual Point NCFromClientCoordinates(Point clientCoordinates)
Parameters
System.Drawing.Point clientCoordinates

Returns
System.Drawing.Point

OnActiveMDIChildTextChanged()

Declaration
protected override void OnActiveMDIChildTextChanged()
Overrides
ThemedFormBehavior.OnActiveMDIChildTextChanged()

OnAssociatedFormPaintBackground(PaintEventArgs)

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

Returns
System.Boolean

Overrides
FormControlBehavior.OnAssociatedFormPaintBackground(PaintEventArgs)

OnFormAssociated()

Declaration
protected override void OnFormAssociated()
Overrides
ThemedFormBehavior.OnFormAssociated()

OnGetMinMaxInfo(MinMaxInfo)

Declaration
protected override void OnGetMinMaxInfo(MinMaxInfo minMaxInfo)
Parameters
MinMaxInfo minMaxInfo

Overrides
ThemedFormBehavior.OnGetMinMaxInfo(MinMaxInfo)

OnWMActivateCore(ref Message)

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

OnWmMDIActivate(ref Message)

Declaration
protected virtual bool OnWmMDIActivate(ref Message m)
Parameters
System.Windows.Forms.Message m

Returns
System.Boolean

OnWmNCLeftMouseButtonDown(ref Message)

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

OnWmNCLeftMouseButtonUp(ref Message)

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

OnWMNCRightButtonUp(ref Message)

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

OnWmParentNotifyInDesigner(ref Message)

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

OnWmSetIcon(ref Message)

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

OnWmSetText(ref Message)

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

ResetFormRegion()

Declaration
protected void ResetFormRegion()

UpdateFormForThemingState(Boolean)

Declaration
protected abstract void UpdateFormForThemingState(bool showAero)
Parameters
System.Boolean showAero

UpdateMDIButtonsAndCaptionText()

Declaration
protected virtual void UpdateMDIButtonsAndCaptionText()

UpdateNCComposition()

Declaration
protected abstract void UpdateNCComposition()

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.