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
public FormImageBorderPrimitive()
Fields
public static RadProperty BottomLeftCornerProperty
public static RadProperty BottomRightCornerProperty
public static RadProperty BottomTextureProperty
public static RadProperty LeftTextureProperty
public static RadProperty RightTextureProperty
public static RadProperty TopLeftEndProperty
public static RadProperty TopRightEndProperty
Properties
Gets or sets the border thickness of the element. This thickness is included into the element's bounding rectangle.
public override Padding BorderThickness { get; set; }
Overrides:
Gets a Padding object that represents the left, top, right and bottom width of the border.
public Padding BorderWidth { get; }
Gets or sets the image for the bottom left border corner.
public Image BottomLeftCorner { get; set; }
Gets or sets the image for the bottom right border corner.
public Image BottomRightCorner { get; set; }
Gets or sets the texture for the bottom image border.
public Image BottomTexture { get; set; }
Gets or sets the texture for the left image border.
public Image LeftTexture { get; set; }
Gets or sets the texture for the right image border.
public Image RightTexture { get; set; }
Gets or sets the left Image which represents the transition between the image border and the title bar element.
public Image TopLeftEnd { get; set; }
Gets or sets the right Image which represents the transition between the image border and the title bar element.
public Image TopRightEnd { get; set; }
Methods
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
protected override void DisposeManagedResources()
Overrides:
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.
protected override void InitializeFields()
Overrides:
When overridden in a derived class, performs the actual painting of the primitive.
public override void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)
The IGraphics object used for painting operations.
anglefloatThe rotation angle in degrees to apply during painting.
scaleSizeFThe scaling factor to apply during painting.
Overrides:
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.