FocusPrimitive
Represents a primitive element that renders focus indicators for UI controls.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class FocusPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFocusPrimitive...
Implements:
Inherited Members
Constructors
Fields
public static readonly RadProperty BorderBoxStyleProperty
public static RadProperty ForeColor2Property
public static RadProperty ForeColor3Property
public static RadProperty ForeColor4Property
public static RadProperty GradientAngleProperty
public static RadProperty GradientStyleProperty
public static RadProperty InnerColor2Property
public static RadProperty InnerColor3Property
public static RadProperty InnerColor4Property
public static RadProperty InnerColorProperty
Properties
Gets or sets the border box style for the focus indicator.
public BorderBoxStyle BoxStyle { get; set; }
A BorderBoxStyle value that determines how the focus border is rendered.
The box style affects how the focus border appears, including whether it's a single border, four separate borders, or outer and inner borders for enhanced visibility.
Gets or sets a value indicating the way element will fill its available size when parent element is calculating element size and location.
public override RadFitToSizeMode FitToSizeMode { get; set; }
Overrides:
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor2 { get; set; }
Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor3 { get; set; }
Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor4 { get; set; }
Gets or sets gradient angle for linear gradient measured in degrees.
public float GradientAngle { get; set; }
Gets or sets gradient style. Possible styles are solid, linear, radial, glass, office glass, gel, and vista.
public GradientStyles GradientStyle { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor2 { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor3 { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor4 { get; set; }
Methods
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.