ExpanderItem
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
Initializes a new instance of the ExpanderItem class.
public ExpanderItem()
Fields
protected Image cachedSignImage
public static readonly RadProperty DrawSignBorderProperty
public static readonly RadProperty DrawSignFillProperty
This event fires when the expanded state is changed.
public static RoutedEvent ExpandedChangedEvent
public static RadProperty ExpandedProperty
public static RadProperty LinkLineColorProperty
public static RadProperty LinkLineStyleProperty
public static RadProperty LinkLineWidthProperty
public static RadProperty LinkOrientationProperty
public static RadProperty SignBackColor2Property
public static RadProperty SignBackColor3Property
public static RadProperty SignBackColor4Property
public static RadProperty SignBackColorProperty
public static RadProperty SignBorderColorProperty
public static readonly RadProperty SignBorderPaddingProperty
public static readonly RadProperty SignBorderWidthProperty
public static RadProperty SignGradientAngleProperty
public static RadProperty SignGradientPercentage2Property
public static RadProperty SignGradientPercentageProperty
public static RadProperty SignGradientStyleProperty
public static RadProperty SignImageProperty
public static RadProperty SignNumberOfColorsProperty
public static readonly RadProperty SignPaddingProperty
public static RadProperty SignSizeProperty
public static RadProperty SignStyleProperty
public static readonly RadProperty SignWidthProperty
public static RadProperty SquareSignSizeProperty
Properties
Gets or sets a value indicating that the sign's border must be drawn
public bool DrawSignBorder { get; set; }
Gets or sets a value indicating that the sign's fill must be drawn
public bool DrawSignFill { get; set; }
Gets or sets a value indicating whether the sign is in expanded or collapsed state
public virtual bool Expanded { get; set; }
Gets or sets a value determining the color of the link lines
public Color LinkLineColor { get; set; }
Gets or sets a value determining the style of the link lines
public DashStyle LinkLineStyle { get; set; }
Gets or sets a value determining the width of the link lines
public float LinkLineWidth { get; set; }
Gets or sets a value detemining the link lines that be rendered around the expander sign
public ExpanderItem.LinkLineOrientation LinkOrientation { get; set; }
Gets or sets sign's back color
public virtual Color SignBackColor { get; set; }
Gets or sets sign's second back color
public virtual Color SignBackColor2 { get; set; }
Gets or sets sign's third back color
public virtual Color SignBackColor3 { get; set; }
Gets or sets sign's fourth back color
public virtual Color SignBackColor4 { get; set; }
Gets or sets the sign's border color
public virtual Color SignBorderColor { get; set; }
Gets or sets the padding sizes of the border around the sign.
public Padding SignBorderPadding { get; set; }
Gets or sets the border width of the sign.
public float SignBorderWidth { get; set; }
Gets or sets the gradient angle of sign's background
public virtual float SignGradientAngle { get; set; }
Gets or sets the gradient percentage of sign's background
public virtual float SignGradientPercentage { get; set; }
Gets or sets the second gradient percentage of sign's background
public virtual float SignGradientPercentage2 { get; set; }
Gets or sets the gradient style of sign's background
public virtual GradientStyles SignGradientStyle { get; set; }
Gets or sets the sign image.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image SignImage { get; set; }
Gets or sets the number of colors used for drawing sign's background
public virtual int SignNumberOfColors { get; set; }
Gets or sets the padding sizes of the sign.
public Padding SignPadding { get; set; }
Gets or sets the sign's style
public virtual SignStyles SignStyle { get; set; }
Gets or sets a value indicating that the sign must maintain square size
public virtual bool SquareSignSize { get; set; }
Methods
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.
public override void DpiScaleChanged(SizeF scaleFactor)
The new DPI scale factor.
Overrides:
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Determines whether the specified property may be canceled.
protected override bool IsPropertyCancelable(RadPropertyMetadata metadata)
The metadata associated with the property change.
Returns:Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Paint the sign's border
protected virtual void PaintBorder(IGraphics g, RectangleF signBorder)
The IGraphics to use for painting the sign's border
signBorderRectangleFRectangle containing sign bounds
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Paints the sign
protected virtual void PaintSign(IGraphics g, RectangleF signRect)
The IGraphics to use fo painting the sign
signRectRectangleFRectangle containing sign bounds
protected virtual void PaintSignLines(IGraphics g, RectangleF signRect, RectangleF signBorder)
protected void PaintSignShape(IGraphics g, RectangleF signRect)