ClassFormImageBorderPrimitive
A class that represents a border for a Form which is built by images.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class FormImageBorderPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFormImageBorderPrimitive
Implements:
Inherited Members
Constructors
FormImageBorderPrimitive()
Declaration
public FormImageBorderPrimitive()
Fields
BottomLeftCornerProperty
Declaration
public static RadProperty BottomLeftCornerProperty
Field Value
BottomRightCornerProperty
Declaration
public static RadProperty BottomRightCornerProperty
Field Value
BottomTextureProperty
Declaration
public static RadProperty BottomTextureProperty
Field Value
RightTextureProperty
Declaration
public static RadProperty RightTextureProperty
Field Value
Properties
BorderThickness
Gets or sets the border thickness of the element. This thickness is included into the element's bounding rectangle.
Declaration
public override Padding BorderThickness { get; set; }
Property Value
Overrides
BorderWidth
Gets a Padding object that represents the left, top, right and bottom width of the border.
BottomLeftCorner
Gets or sets the image for the bottom left border corner.
BottomRightCorner
Gets or sets the image for the bottom right border corner.
BottomTexture
Gets or sets the texture for the bottom image border.
LeftTexture
Gets or sets the texture for the left image border.
RightTexture
Gets or sets the texture for the right image border.
TopLeftEnd
Gets or sets the left Image which represents the transition between the image border and the title bar element.
TopRightEnd
Gets or sets the right Image which represents the transition between the image border and the title bar element.
Methods
DisposeManagedResources()
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
PaintPrimitive(IGraphics, float, SizeF)
When overridden in a derived class, performs the actual painting of the primitive.
Declaration
public override void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The IGraphics object used for painting operations.
angle
The rotation angle in degrees to apply during painting.
scale
The scaling factor to apply during painting.
Overrides
Remarks
This is the core method that derived primitive classes must override to implement their specific rendering logic. The base implementation is empty and should be overridden.