Draws a layered form border that extends the host control's caption fill and adds a client-area shadow.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class FormCaptionBorderPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFormCaptionBorderPrimitive...
Derived Classes:
Implements:
Inherited Members
Constructors
protected FormCaptionBorderPrimitive()
Fields
Identifies the color of the primitive's outer border.
public static RadProperty BorderColorProperty
Identifies the color of the primitive's inner border.
public static RadProperty BorderColorProperty1
Caches the child control whose caption visuals are incorporated into this border.
protected Control ownerControl
Identifies the color used to draw the shadow along the form's client area.
public static RadProperty ShadowColorProperty
Properties
Gets or sets the color of the form's first broder.
[Browsable(true)]
public Color BorderColor { get; set; }
Gets or sets the color of the form's second broder.
[Browsable(true)]
public Color BorderColor1 { get; set; }
Gets or sets the color of the form's client area shadow.
[Browsable(true)]
public Color ShadowColor { get; set; }
Methods
Detaches from the caption fill's property-change notifications before releasing base resources.
protected override void DisposeManagedResources()
Overrides:
Configures the primitive to fit the bounds of its parent element.
protected override void InitializeFields()
Overrides:
Invalidates the border when one of the caption fill's background-color properties changes.
protected virtual void OnCaptionFillPropertyChanged(object sender, PropertyChangedEventArgs e)
The caption fill element that raised the notification.
ePropertyChangedEventArgsThe changed property information.
Sets the parent border thickness to (4, 1, 4, 4), leaving space for the one-unit outer and three-unit inner borders.
protected override void OnParentChanged(RadElement previousParent)
The element that was the parent before the change.
Overrides:
Draws the inner border, caption extensions, shaped outer border, and client-area shadow.