ClassExpanderItem
Represents an expander that is drawn in expander cells
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ExpanderItem : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementExpanderItem
Derived Classes:
Implements:
Inherited Members
Constructors
ExpanderItem()
Initializes a new instance of the ExpanderItem class.
Declaration
public ExpanderItem()
Fields
DrawSignBorderProperty
Declaration
public static readonly RadProperty DrawSignBorderProperty
Field Value
DrawSignFillProperty
Declaration
public static readonly RadProperty DrawSignFillProperty
Field Value
ExpandedChangedEvent
This event fires when the expanded state is changed.
Declaration
public static RoutedEvent ExpandedChangedEvent
Field Value
LinkLineColorProperty
Declaration
public static RadProperty LinkLineColorProperty
Field Value
LinkLineStyleProperty
Declaration
public static RadProperty LinkLineStyleProperty
Field Value
LinkLineWidthProperty
Declaration
public static RadProperty LinkLineWidthProperty
Field Value
LinkOrientationProperty
Declaration
public static RadProperty LinkOrientationProperty
Field Value
SignBackColor2Property
Declaration
public static RadProperty SignBackColor2Property
Field Value
SignBackColor3Property
Declaration
public static RadProperty SignBackColor3Property
Field Value
SignBackColor4Property
Declaration
public static RadProperty SignBackColor4Property
Field Value
SignBackColorProperty
Declaration
public static RadProperty SignBackColorProperty
Field Value
SignBorderColorProperty
Declaration
public static RadProperty SignBorderColorProperty
Field Value
SignBorderPaddingProperty
Declaration
public static readonly RadProperty SignBorderPaddingProperty
Field Value
SignBorderWidthProperty
Declaration
public static readonly RadProperty SignBorderWidthProperty
Field Value
SignGradientAngleProperty
Declaration
public static RadProperty SignGradientAngleProperty
Field Value
SignGradientPercentage2Property
Declaration
public static RadProperty SignGradientPercentage2Property
Field Value
SignGradientPercentageProperty
Declaration
public static RadProperty SignGradientPercentageProperty
Field Value
SignGradientStyleProperty
Declaration
public static RadProperty SignGradientStyleProperty
Field Value
SignNumberOfColorsProperty
Declaration
public static RadProperty SignNumberOfColorsProperty
Field Value
SignPaddingProperty
Declaration
public static readonly RadProperty SignPaddingProperty
Field Value
SignWidthProperty
Declaration
public static readonly RadProperty SignWidthProperty
Field Value
SquareSignSizeProperty
Declaration
public static RadProperty SquareSignSizeProperty
Field Value
Properties
DrawSignBorder
Gets or sets a value indicating that the sign's border must be drawn
DrawSignFill
Gets or sets a value indicating that the sign's fill must be drawn
Expanded
Gets or sets a value indicating whether the sign is in expanded or collapsed state
LinkLineColor
Gets or sets a value determining the color of the link lines
LinkLineStyle
Gets or sets a value determining the style of the link lines
LinkLineWidth
Gets or sets a value determining the width of the link lines
LinkOrientation
Gets or sets a value detemining the link lines that be rendered around the expander sign
Declaration
public ExpanderItem.LinkLineOrientation LinkOrientation { get; set; }
Property Value
SignBackColor
Gets or sets sign's back color
SignBackColor2
Gets or sets sign's second back color
Declaration
public virtual Color SignBackColor2 { get; set; }
Property Value
SignBackColor3
Gets or sets sign's third back color
Declaration
public virtual Color SignBackColor3 { get; set; }
Property Value
SignBackColor4
Gets or sets sign's fourth back color
Declaration
public virtual Color SignBackColor4 { get; set; }
Property Value
SignBorderColor
Gets or sets the sign's border color
Declaration
public virtual Color SignBorderColor { get; set; }
Property Value
SignBorderPadding
Gets or sets the padding sizes of the border around the sign.
SignBorderWidth
Gets or sets the border width of the sign.
SignGradientAngle
Gets or sets the gradient angle of sign's background
Declaration
public virtual float SignGradientAngle { get; set; }
Property Value
SignGradientPercentage
Gets or sets the gradient percentage of sign's background
Declaration
public virtual float SignGradientPercentage { get; set; }
Property Value
SignGradientPercentage2
Gets or sets the second gradient percentage of sign's background
Declaration
public virtual float SignGradientPercentage2 { get; set; }
Property Value
SignGradientStyle
Gets or sets the gradient style of sign's background
Declaration
public virtual GradientStyles SignGradientStyle { get; set; }
Property Value
SignImage
Gets or sets the sign image.
Declaration
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image SignImage { get; set; }
Property Value
SignNumberOfColors
Gets or sets the number of colors used for drawing sign's background
Declaration
public virtual int SignNumberOfColors { get; set; }
Property Value
SignPadding
Gets or sets the padding sizes of the sign.
SignSize
Gets or sets the sign's size
SignStyle
Gets or sets the sign's style
Declaration
public virtual SignStyles SignStyle { get; set; }
Property Value
SignWidth
Gets or sets the width of the sign.
SquareSignSize
Gets or sets a value indicating that the sign must maintain square size
Methods
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
DpiScaleChanged(SizeF)
Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
scaleFactor
The new DPI scale factor.
Overrides
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
IsPropertyCancelable(RadPropertyMetadata)
Determines whether the specified property may be canceled.
Declaration
protected override bool IsPropertyCancelable(RadPropertyMetadata metadata)
Parameters
metadata
The metadata associated with the property change.
Returns
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
PaintBorder(IGraphics, RectangleF)
Paint the sign's border
Declaration
protected virtual void PaintBorder(IGraphics g, RectangleF signBorder)
Parameters
g
The IGraphics to use for painting the sign's border
signBorder
Rectangle containing sign bounds
PaintElement(IGraphics, float, SizeF)
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for rendering.
angle
The rotation angle to apply during painting.
scale
The scaling factor to apply during painting.
Overrides
PaintFill(IGraphics, Rectangle)
Paints the sign's fill
PaintSign(IGraphics, RectangleF)
Paints the sign
Declaration
protected virtual void PaintSign(IGraphics g, RectangleF signRect)
Parameters
g
The IGraphics to use fo painting the sign
signRect
Rectangle containing sign bounds
PaintSignLines(IGraphics, RectangleF, RectangleF)
Declaration
protected virtual void PaintSignLines(IGraphics g, RectangleF signRect, RectangleF signBorder)
Parameters
g
signRect
signBorder
PaintSignShape(IGraphics, RectangleF)
Declaration
protected void PaintSignShape(IGraphics g, RectangleF signRect)
Parameters
g
signRect
UpdateSignImage(Image)
Declaration
protected virtual void UpdateSignImage(Image newImage)
Parameters
newImage