Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Syntax:
public abstract class RadNonClientUIBaseFormBehavior<T> : ThemedFormBehavior, IComponent, IDisposable where T : RadNonClientUIControl
Inheritance: objectMarshalByRefObjectComponentFormControlBehaviorThemedFormBehaviorRadNonClientUIBaseFormBehavior<T>...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates an instance of the "RadNonClientUIBaseFormBehavior" class.
public RadNonClientUIBaseFormBehavior()
Creates an instance of the "RadNonClientUIBaseFormBehavior" class.
public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)
The associated IComponentTreeHandler implementation.
shouldHandleCreateChildItemsboolDetermines whether the behavior handles the CreateChildItems call.
Creates an instance of the "RadNonClientUIBaseFormBehavior" class.
The IComponentTreeHandler implementation which this behavior is associated with.public RadNonClientUIBaseFormBehavior(IComponentTreeHandler treeHandler)
Fields
protected RadElement capturedNCItem
protected const int MaxFormBorderHeight = 4
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.
[Browsable(false)]
public override bool AllowTheming { get; set; }
Overrides:
Returns a zero for the caption height.
public override int CaptionHeight { get; }
Overrides:
Gets the rectangle that contains the form's caption text.
public override Rectangle CaptionTextBounds { get; }
Overrides:
Gets the margin that describes the size and position of the client area.
public override Padding ClientMargin { get; }
Overrides:
Gets a boolean value indicating whether composition effects are enabled for the form.
public bool CompositionEffectsEnabled { get; }
Gets a value indicating whether composition effects are enabled for the Operating System.
protected bool CompositionEnabled { get; }
Gets the RadElement instance that represents the root element containing the hierarchy that builds the visual appearance of the form.
public override RadElement FormElement { get; }
Overrides:
Gets the rectangle that contains the form's icon.
public override Rectangle IconBounds { get; }
Overrides:
Gets the rectangle that contains the menu of the form.
public override Rectangle MenuBounds { get; }
Overrides:
protected virtual T NonClientUIControl { get; set; }
Gets the rectangle that contains the system buttons of the form.
public override Rectangle SystemButtonsBounds { get; }
Overrides:
Gets an integer representing the top client margin of the form when composition is enabled.
public abstract int TopCompositionMargin { get; }
Methods
protected abstract void AdjustBehaviorForCompositionSate()
protected abstract void AdjustFormElementForFormState(int? currentFormState)
public virtual void AdjustFormIconVisibility()
protected void AdjustSystemButtonsForStyle()
public override CreateParams CreateParams(CreateParams parameters)
Overrides:
protected virtual void DisposeNonClientUIControlImpls()
protected virtual void ExtendFrameIntoClientArea()
protected virtual void Form_ControlAdded(object sender, ControlEventArgs e)
public override void FormHandleCreated()
Overrides:
protected virtual void InitializeDummyMenuStrip()
protected abstract void InitializeNonClientUIControl()
protected override void OnActiveMDIChildTextChanged()
Overrides:
public override bool OnAssociatedFormPaintBackground(PaintEventArgs args)
Overrides:
Occurs when a form is associated with the behavior.
protected override void OnFormAssociated()
Overrides:
This event is fired when the WM_GETMINMAXINFO message is sent to the form.
protected override void OnGetMinMaxInfo(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:
protected void ResetFormRegion()
protected virtual void UpdateMDIButtonsAndCaptionText()
protected abstract void UpdateNCComposition()