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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

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

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

C#
public RadNonClientUIBaseFormBehavior()

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

C#
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)
Parameters:treeHandlerIComponentTreeHandler

The associated IComponentTreeHandler implementation.

shouldHandleCreateChildItemsbool

Determines whether the behavior handles the CreateChildItems call.

Creates an instance of the "RadNonClientUIBaseFormBehavior" class.

The IComponentTreeHandler implementation which this behavior is associated with.
C#
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler)
Parameters:treeHandlerIComponentTreeHandler

Fields

C#
protected RadElement capturedNCItem
C#
protected const int MaxFormBorderHeight = 4
C#
protected const int RegionHeightEllipse = 9

Properties

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

C#
[Browsable(false)]
public override bool AllowTheming { get; set; }

Overrides: ThemedFormBehavior.AllowTheming

Returns a zero for the caption height.

C#
public override int CaptionHeight { get; }

Overrides: FormControlBehavior.CaptionHeight

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

C#
public override Rectangle CaptionTextBounds { get; }

Overrides: ThemedFormBehavior.CaptionTextBounds

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

C#
public override Padding ClientMargin { get; }

Overrides: FormControlBehavior.ClientMargin

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

C#
public bool CompositionEffectsEnabled { get; }

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

C#
protected bool CompositionEnabled { get; }

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

C#
public override RadElement FormElement { get; }

Overrides: FormControlBehavior.FormElement

Gets the rectangle that contains the form's icon.

C#
public override Rectangle IconBounds { get; }

Overrides: ThemedFormBehavior.IconBounds

Gets the rectangle that contains the menu of the form.

C#
public override Rectangle MenuBounds { get; }

Overrides: ThemedFormBehavior.MenuBounds

C#
protected virtual T NonClientUIControl { get; set; }

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

C#
public override Rectangle SystemButtonsBounds { get; }

Overrides: ThemedFormBehavior.SystemButtonsBounds

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

C#
public abstract int TopCompositionMargin { get; }

Methods

C#
protected abstract void AdjustBehaviorForCompositionSate()
C#
protected abstract void AdjustFormElementForFormState(int? currentFormState)
Parameters:currentFormStateint?
C#
public virtual void AdjustFormIconVisibility()
C#
protected void AdjustSystemButtonsForStyle()
C#
protected virtual bool CanHandleParentNotify(ref Message m)
Parameters:mMessageReturns:

bool

C#
protected virtual bool CanHandleWndProc()
Returns:

bool

C#
public override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

Overrides: FormControlBehavior.CreateChildItems(RadElement)

C#
protected abstract RadElement CreateFormElement()
Returns:

RadElement

C#
public override CreateParams CreateParams(CreateParams parameters)
Parameters:parametersCreateParamsReturns:

CreateParams

Overrides: ThemedFormBehavior.CreateParams(CreateParams)

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

Overrides: ThemedFormBehavior.Dispose(bool)

C#
protected virtual void DisposeNonClientUIControlImpls()
C#
protected virtual void ExtendFrameIntoClientArea()
C#
protected virtual void Form_ControlAdded(object sender, ControlEventArgs e)
Parameters:senderobjecteControlEventArgs
C#
protected virtual void Form_Load(object sender, EventArgs e)
Parameters:senderobjecteEventArgs
C#
protected virtual void Form_SizeChanged(object sender, EventArgs e)
Parameters:senderobjecteEventArgs
C#
public override void FormHandleCreated()

Overrides: FormControlBehavior.FormHandleCreated()

C#
public override bool HandleWndProc(ref Message m)
Parameters:mMessageReturns:

bool

Overrides: ThemedFormBehavior.HandleWndProc(ref Message)

C#
protected virtual void InitializeDummyMenuStrip()
C#
protected abstract void InitializeNonClientUIControl()
C#
protected virtual bool IsApplicationMenu()
Returns:

bool

C#
protected virtual Point NCFromClientCoordinates(Point clientCoordinates)
Parameters:clientCoordinatesPointReturns:

Point

C#
protected override void OnActiveMDIChildTextChanged()

Overrides: ThemedFormBehavior.OnActiveMDIChildTextChanged()

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

bool

Overrides: FormControlBehavior.OnAssociatedFormPaintBackground(PaintEventArgs)

Occurs when a form is associated with the behavior.

C#
protected override void OnFormAssociated()

Overrides: ThemedFormBehavior.OnFormAssociated()

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

C#
protected override void OnGetMinMaxInfo(MinMaxInfo minMaxInfo)
Parameters:minMaxInfoMinMaxInfo

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)

C#
protected abstract void OnWMActivateCore(ref Message m)
Parameters:mMessage
C#
protected virtual bool OnWmMDIActivate(ref Message m)
Parameters:mMessageReturns:

bool

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