Class
RadNonClientUIBaseFormBehavior<T>

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class RadNonClientUIBaseFormBehavior<T> : ThemedFormBehavior, IComponent, IDisposable where T : RadNonClientUIControl

Inheritance: objectMarshalByRefObjectComponentFormControlBehaviorThemedFormBehaviorRadNonClientUIBaseFormBehavior<T>

Derived Classes: RadRibbonFormBehaviorRadTabbedFormBehaviorRadToolbarFormBehavior

Implements: IComponentIDisposable

Inherited Members ThemedFormBehavior.GetMappedWindowPoint(Point)ThemedFormBehavior.GetMaximumFormHeightAccordingToCurrentScreen()ThemedFormBehavior.OnWindowStateChanged(int, int)ThemedFormBehavior.RefreshNC()ThemedFormBehavior.InvalidateNC(Rectangle)ThemedFormBehavior.OnNCPaint(Graphics)ThemedFormBehavior.PaintElement(IGraphics, Rectangle, VisualElement)ThemedFormBehavior.InvalidateElement(RadElement, Rectangle)ThemedFormBehavior.IsMaximizedThemedFormBehavior.IsMinimizedThemedFormBehavior.IsNormalThemedFormBehavior.CurrentFormStateThemedFormBehavior.IsMdiChildMaximizedThemedFormBehavior.FormMdiClientThemedFormBehavior.IsMenuInFormThemedFormBehavior.MainMenuInFormThemedFormBehavior.MaximizedMDIChildThemedFormBehavior.TopResizeFrameThemedFormBehavior.TopLeftResizeFrameThemedFormBehavior.LeftResizeFrameThemedFormBehavior.BottomLeftResizeFrameThemedFormBehavior.BottomResizeFrameThemedFormBehavior.BottomRightResizeFrameThemedFormBehavior.RightResizeFrameThemedFormBehavior.TopRightResizeFrameThemedFormBehavior.CaptionFrameThemedFormBehavior.LeftBorderFrameThemedFormBehavior.BottomBorderFrameThemedFormBehavior.RightBorderFrameThemedFormBehavior.ClientFrameThemedFormBehavior.CurrentFormParamsThemedFormBehavior.FormFormControlBehavior.targetHandlerFormControlBehavior.CallBaseWndProc(ref Message)FormControlBehavior.CallDefWndProc(ref Message)FormControlBehavior.OnAssociatedFormPaint(PaintEventArgs)FormControlBehavior.BorderWidthComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadNonClientUIBaseFormBehavior()

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

Declaration

cs-api-definition
public RadNonClientUIBaseFormBehavior()

RadNonClientUIBaseFormBehavior(IComponentTreeHandler)

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

The IComponentTreeHandler implementation which this behavior is associated with.

Declaration

cs-api-definition
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler)

Parameters

treeHandler

IComponentTreeHandler

RadNonClientUIBaseFormBehavior(IComponentTreeHandler, bool)

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

Declaration

cs-api-definition
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)

Parameters

treeHandler

IComponentTreeHandler

The associated IComponentTreeHandler implementation.

shouldHandleCreateChildItems

bool

Determines whether the behavior handles the CreateChildItems call.

Fields

MaxFormBorderHeight

Declaration

cs-api-definition
protected const int MaxFormBorderHeight = 4

Field Value

int

RegionHeightEllipse

Declaration

cs-api-definition
protected const int RegionHeightEllipse = 9

Field Value

int

capturedNCItem

Declaration

cs-api-definition
protected RadElement capturedNCItem

Field Value

RadElement

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

cs-api-definition
[Browsable(false)]
public override bool AllowTheming { get; set; }

Property Value

bool

Overrides ThemedFormBehavior.AllowTheming

CaptionHeight

Returns a zero for the caption height.

Declaration

cs-api-definition
public override int CaptionHeight { get; }

Property Value

int

Overrides FormControlBehavior.CaptionHeight

CaptionTextBounds

Gets the rectangle that contains the form's caption text.

Declaration

cs-api-definition
public override Rectangle CaptionTextBounds { get; }

Property Value

Rectangle

Overrides ThemedFormBehavior.CaptionTextBounds

ClientMargin

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

Declaration

cs-api-definition
public override Padding ClientMargin { get; }

Property Value

Padding

Overrides FormControlBehavior.ClientMargin

CompositionEffectsEnabled

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

Declaration

cs-api-definition
public bool CompositionEffectsEnabled { get; }

Property Value

bool

CompositionEnabled

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

Declaration

cs-api-definition
protected bool CompositionEnabled { get; }

Property Value

bool

FormElement

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

Declaration

cs-api-definition
public override RadElement FormElement { get; }

Property Value

RadElement

Overrides FormControlBehavior.FormElement

IconBounds

Gets the rectangle that contains the form's icon.

Declaration

cs-api-definition
public override Rectangle IconBounds { get; }

Property Value

Rectangle

Overrides ThemedFormBehavior.IconBounds

MenuBounds

Gets the rectangle that contains the menu of the form.

Declaration

cs-api-definition
public override Rectangle MenuBounds { get; }

Property Value

Rectangle

Overrides ThemedFormBehavior.MenuBounds

NonClientUIControl

Declaration

cs-api-definition
protected virtual T NonClientUIControl { get; set; }

Property Value

T

SystemButtonsBounds

Gets the rectangle that contains the system buttons of the form.

Declaration

cs-api-definition
public override Rectangle SystemButtonsBounds { get; }

Property Value

Rectangle

Overrides ThemedFormBehavior.SystemButtonsBounds

TopCompositionMargin

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

Declaration

cs-api-definition
public abstract int TopCompositionMargin { get; }

Property Value

int

Methods

AdjustBehaviorForCompositionSate()

Declaration

cs-api-definition
protected abstract void AdjustBehaviorForCompositionSate()

AdjustFormElementForFormState(int?)

Declaration

cs-api-definition
protected abstract void AdjustFormElementForFormState(int? currentFormState)

Parameters

currentFormState

int?

AdjustFormIconVisibility()

Declaration

cs-api-definition
public virtual void AdjustFormIconVisibility()

AdjustSystemButtonsForStyle()

Declaration

cs-api-definition
protected void AdjustSystemButtonsForStyle()

CanHandleParentNotify(ref Message)

Declaration

cs-api-definition
protected virtual bool CanHandleParentNotify(ref Message m)

Parameters

m

Message

Returns

bool

CanHandleWndProc()

Declaration

cs-api-definition
protected virtual bool CanHandleWndProc()

Returns

bool

CreateChildItems(RadElement)

Declaration

cs-api-definition
public override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

Overrides FormControlBehavior.CreateChildItems(RadElement)

CreateFormElement()

Declaration

cs-api-definition
protected abstract RadElement CreateFormElement()

Returns

RadElement

CreateParams(CreateParams)

Declaration

cs-api-definition
public override CreateParams CreateParams(CreateParams parameters)

Parameters

parameters

CreateParams

Returns

CreateParams

Overrides ThemedFormBehavior.CreateParams(CreateParams)

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides ThemedFormBehavior.Dispose(bool)

DisposeNonClientUIControlImpls()

Declaration

cs-api-definition
protected virtual void DisposeNonClientUIControlImpls()

ExtendFrameIntoClientArea()

Declaration

cs-api-definition
protected virtual void ExtendFrameIntoClientArea()

FormHandleCreated()

Declaration

cs-api-definition
public override void FormHandleCreated()

Overrides FormControlBehavior.FormHandleCreated()

Form_ControlAdded(object, ControlEventArgs)

Declaration

cs-api-definition
protected virtual void Form_ControlAdded(object sender, ControlEventArgs e)

Parameters

sender

object

e

ControlEventArgs

Form_Load(object, EventArgs)

Declaration

cs-api-definition
protected virtual void Form_Load(object sender, EventArgs e)

Parameters

sender

object

e

EventArgs

Form_SizeChanged(object, EventArgs)

Declaration

cs-api-definition
protected virtual void Form_SizeChanged(object sender, EventArgs e)

Parameters

sender

object

e

EventArgs

HandleWndProc(ref Message)

Declaration

cs-api-definition
public override bool HandleWndProc(ref Message m)

Parameters

m

Message

Returns

bool

Overrides ThemedFormBehavior.HandleWndProc(ref Message)

InitializeDummyMenuStrip()

Declaration

cs-api-definition
protected virtual void InitializeDummyMenuStrip()

InitializeNonClientUIControl()

Declaration

cs-api-definition
protected abstract void InitializeNonClientUIControl()

IsApplicationMenu()

Declaration

cs-api-definition
protected virtual bool IsApplicationMenu()

Returns

bool

NCFromClientCoordinates(Point)

Declaration

cs-api-definition
protected virtual Point NCFromClientCoordinates(Point clientCoordinates)

Parameters

clientCoordinates

Point

Returns

Point

OnActiveMDIChildTextChanged()

Declaration

cs-api-definition
protected override void OnActiveMDIChildTextChanged()

Overrides ThemedFormBehavior.OnActiveMDIChildTextChanged()

OnAssociatedFormPaintBackground(PaintEventArgs)

Declaration

cs-api-definition
public override bool OnAssociatedFormPaintBackground(PaintEventArgs args)

Parameters

args

PaintEventArgs

Returns

bool

Overrides FormControlBehavior.OnAssociatedFormPaintBackground(PaintEventArgs)

OnFormAssociated()

Occurs when a form is associated with the behavior.

Declaration

cs-api-definition
protected override void OnFormAssociated()

Overrides ThemedFormBehavior.OnFormAssociated()

OnGetMinMaxInfo(MinMaxInfo)

This event is fired when the WM_GETMINMAXINFO message is sent to the form.

Declaration

cs-api-definition
protected override void OnGetMinMaxInfo(MinMaxInfo minMaxInfo)

Parameters

minMaxInfo

MinMaxInfo

Contains information about the position, maximum/minimum size of the form etc. Can be modified to adjust the settings applied to the form.

Overrides ThemedFormBehavior.OnGetMinMaxInfo(MinMaxInfo)

OnWMActivateCore(ref Message)

Declaration

cs-api-definition
protected abstract void OnWMActivateCore(ref Message m)

Parameters

m

Message

OnWMNCRightButtonUp(ref Message)

Declaration

cs-api-definition
protected virtual void OnWMNCRightButtonUp(ref Message m)

Parameters

m

Message

OnWmMDIActivate(ref Message)

Declaration

cs-api-definition
protected virtual bool OnWmMDIActivate(ref Message m)

Parameters

m

Message

Returns

bool

OnWmNCLeftMouseButtonDown(ref Message)

Declaration

cs-api-definition
protected abstract void OnWmNCLeftMouseButtonDown(ref Message m)

Parameters

m

Message

OnWmNCLeftMouseButtonUp(ref Message)

Declaration

cs-api-definition
protected abstract void OnWmNCLeftMouseButtonUp(ref Message m)

Parameters

m

Message

OnWmParentNotifyInDesigner(ref Message)

Declaration

cs-api-definition
protected virtual void OnWmParentNotifyInDesigner(ref Message m)

Parameters

m

Message

OnWmSetIcon(ref Message)

Declaration

cs-api-definition
protected virtual void OnWmSetIcon(ref Message m)

Parameters

m

Message

OnWmSetText(ref Message)

Declaration

cs-api-definition
protected virtual void OnWmSetText(ref Message m)

Parameters

m

Message

ResetFormRegion()

Declaration

cs-api-definition
protected void ResetFormRegion()

UpdateFormForThemingState(bool)

Declaration

cs-api-definition
protected abstract void UpdateFormForThemingState(bool showAero)

Parameters

showAero

bool

UpdateMDIButtonsAndCaptionText()

Declaration

cs-api-definition
protected virtual void UpdateMDIButtonsAndCaptionText()

UpdateNCComposition()

Declaration

cs-api-definition
protected abstract void UpdateNCComposition()
In this article
DefinitionConstructorsRadNonClientUIBaseFormBehavior()RadNonClientUIBaseFormBehavior(IComponentTreeHandler)RadNonClientUIBaseFormBehavior(IComponentTreeHandler, bool)FieldsMaxFormBorderHeightRegionHeightEllipsecapturedNCItemPropertiesAllowThemingCaptionHeightCaptionTextBoundsClientMarginCompositionEffectsEnabledCompositionEnabledFormElementIconBoundsMenuBoundsNonClientUIControlSystemButtonsBoundsTopCompositionMarginMethodsAdjustBehaviorForCompositionSate()AdjustFormElementForFormState(int?)AdjustFormIconVisibility()AdjustSystemButtonsForStyle()CanHandleParentNotify(ref Message)CanHandleWndProc()CreateChildItems(RadElement)CreateFormElement()CreateParams(CreateParams)Dispose(bool)DisposeNonClientUIControlImpls()ExtendFrameIntoClientArea()FormHandleCreated()Form_ControlAdded(object, ControlEventArgs)Form_Load(object, EventArgs)Form_SizeChanged(object, EventArgs)HandleWndProc(ref Message)InitializeDummyMenuStrip()InitializeNonClientUIControl()IsApplicationMenu()NCFromClientCoordinates(Point)OnActiveMDIChildTextChanged()OnAssociatedFormPaintBackground(PaintEventArgs)OnFormAssociated()OnGetMinMaxInfo(MinMaxInfo)OnWMActivateCore(ref Message)OnWMNCRightButtonUp(ref Message)OnWmMDIActivate(ref Message)OnWmNCLeftMouseButtonDown(ref Message)OnWmNCLeftMouseButtonUp(ref Message)OnWmParentNotifyInDesigner(ref Message)OnWmSetIcon(ref Message)OnWmSetText(ref Message)ResetFormRegion()UpdateFormForThemingState(bool)UpdateMDIButtonsAndCaptionText()UpdateNCComposition()
Not finding the help you need?
Contact Support