ClassFocusPrimitive
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
FocusPrimitive(BorderPrimitive)
Declaration
public FocusPrimitive(BorderPrimitive border)
Parameters
border
Fields
BorderBoxStyleProperty
Declaration
public static readonly RadProperty BorderBoxStyleProperty
Field Value
GradientAngleProperty
Declaration
public static RadProperty GradientAngleProperty
Field Value
GradientStyleProperty
Declaration
public static RadProperty GradientStyleProperty
Field Value
Properties
BoxStyle
Gets or sets the border box style for the focus indicator.
Declaration
public BorderBoxStyle BoxStyle { get; set; }
Property Value
A BorderBoxStyle value that determines how the focus border is rendered.
Remarks
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.
FitToSizeMode
Gets or sets a value indicating the way element will fill its available size when parent element is calculating element size and location.
Declaration
public override RadFitToSizeMode FitToSizeMode { get; set; }
Property Value
Overrides
ForeColor2
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor2 { get; set; }
Property Value
ForeColor3
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor3 { get; set; }
Property Value
ForeColor4
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor4 { get; set; }
Property Value
GradientAngle
Gets or sets gradient angle for linear gradient measured in degrees.
GradientStyle
Gets or sets gradient style. Possible styles are solid, linear, radial, glass, office glass, gel, and vista.
Declaration
public GradientStyles GradientStyle { get; set; }
Property Value
InnerColor
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor { get; set; }
Property Value
InnerColor2
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor2 { get; set; }
Property Value
InnerColor3
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor3 { get; set; }
Property Value
InnerColor4
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor4 { get; set; }
Property Value
Methods
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.