Class
RadElement

Represents the fundamental building block of the Telerik Presentation Framework (TPF), serving as the base class for all visual and logical elements that compose Telerik controls.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RadElement : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElement

Derived Classes: LayoutPanelMentionBoxPickerAlertWindowCaptionElementPivotRowElementRadApplicationMenuContentElementRadApplicationMenuDropDownElementTransparentColorBoxElementRadDropDownMenuElementRadGripElementRadPageViewContentElementStepItemsContainerTextBoxControlCaretBaseVirtualKeyboardLayoutVisualElement

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedIStylableNodeISupportSystemSkin

Inherited Members RadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadElement()

Declaration

cs-api-definition
public RadElement()

Fields

AlignmentProperty

Declaration

cs-api-definition
public static RadProperty AlignmentProperty

Field Value

RadProperty

AngleTransformProperty

Declaration

cs-api-definition
public static RadProperty AngleTransformProperty

Field Value

RadProperty

AutoSizeModeProperty

Declaration

cs-api-definition
public static RadProperty AutoSizeModeProperty

Field Value

RadProperty

AutoSizeProperty

Declaration

cs-api-definition
public static RadProperty AutoSizeProperty

Field Value

RadProperty

BackgroundShapePaintModeProperty

Declaration

cs-api-definition
public static RadProperty BackgroundShapePaintModeProperty

Field Value

RadProperty

BackgroundShapeProperty

Declaration

cs-api-definition
public static RadProperty BackgroundShapeProperty

Field Value

RadProperty

BorderThicknessProperty

Declaration

cs-api-definition
public static RadProperty BorderThicknessProperty

Field Value

RadProperty

BoundsChangedEvent

Tunnels when bounds changed in order to notify any children that should take special actions in this case - like RadHostItem.

Declaration

cs-api-definition
public static RoutedEvent BoundsChangedEvent

Field Value

RoutedEvent

BoundsProperty

Declaration

cs-api-definition
public static RadProperty BoundsProperty

Field Value

RadProperty

CanFocusProperty

Declaration

cs-api-definition
public static RadProperty CanFocusProperty

Field Value

RadProperty

ChildElementAddedEvent

Routed event key for ChildElementAdded event. Bubbles when element is added

Declaration

cs-api-definition
public static RoutedEvent ChildElementAddedEvent

Field Value

RoutedEvent

ClassProperty

Declaration

cs-api-definition
public static RadProperty ClassProperty

Field Value

RadProperty

ClickModeProperty

Declaration

cs-api-definition
public static RadProperty ClickModeProperty

Field Value

RadProperty

ClipDrawingProperty

Declaration

cs-api-definition
public static RadProperty ClipDrawingProperty

Field Value

RadProperty

ContainsFocusProperty

Declaration

cs-api-definition
public static RadProperty ContainsFocusProperty

Field Value

RadProperty

ContainsMouseProperty

Declaration

cs-api-definition
public static RadProperty ContainsMouseProperty

Field Value

RadProperty

ControlChangedEvent

Tunnels when the winforms control has been changed.

Declaration

cs-api-definition
public static RoutedEvent ControlChangedEvent

Field Value

RoutedEvent

EnabledChangedEvent

Tunnels when the Enabled property changes in order to notify any children that should take special actions.

Declaration

cs-api-definition
public static RoutedEvent EnabledChangedEvent

Field Value

RoutedEvent

EnabledProperty

Declaration

cs-api-definition
public static RadProperty EnabledProperty

Field Value

RadProperty

FitToSizeModeProperty

Declaration

cs-api-definition
public static RadProperty FitToSizeModeProperty

Field Value

RadProperty

GetPropertyValueCommand

Declaration

cs-api-definition
public static readonly GetPropertyValueCommand GetPropertyValueCommand

Field Value

GetPropertyValueCommand

IsFocusedProperty

Declaration

cs-api-definition
public static RadProperty IsFocusedProperty

Field Value

RadProperty

IsItemFocusedProperty

Declaration

cs-api-definition
public static RadProperty IsItemFocusedProperty

Field Value

RadProperty

IsMouseDownProperty

Declaration

cs-api-definition
public static RadProperty IsMouseDownProperty

Field Value

RadProperty

IsMouseOverElementProperty

Declaration

cs-api-definition
public static RadProperty IsMouseOverElementProperty

Field Value

RadProperty

IsMouseOverProperty

Declaration

cs-api-definition
public static RadProperty IsMouseOverProperty

Field Value

RadProperty

MarginProperty

Declaration

cs-api-definition
public static RadProperty MarginProperty

Field Value

RadProperty

MaxSizeProperty

Get or sets the maximum size to apply on an element when layout is calculated.

Declaration

cs-api-definition
public static RadProperty MaxSizeProperty

Field Value

RadProperty

MinSizeProperty

Declaration

cs-api-definition
public static RadProperty MinSizeProperty

Field Value

RadProperty

MouseClickedEvent

Tunnels and bubbles on MouseClick on current element

Declaration

cs-api-definition
public static RoutedEvent MouseClickedEvent

Field Value

RoutedEvent

MouseDoubleClickedEvent

Tunnels and bubbles on MouseDoubleClick on current element

Declaration

cs-api-definition
public static RoutedEvent MouseDoubleClickedEvent

Field Value

RoutedEvent

MouseDownEvent

Tunnels and bubbles on MouseDown on current element

Declaration

cs-api-definition
public static RoutedEvent MouseDownEvent

Field Value

RoutedEvent

MouseUpEvent

Tunnels and bubbles on MouseUp on current element

Declaration

cs-api-definition
public static RoutedEvent MouseUpEvent

Field Value

RoutedEvent

MouseWheelEvent

Tunnels and bubbles on MouseWheel on current element

Declaration

cs-api-definition
public static RoutedEvent MouseWheelEvent

Field Value

RoutedEvent

NameProperty

Declaration

cs-api-definition
public static RadProperty NameProperty

Field Value

RadProperty

PaddingProperty

Declaration

cs-api-definition
public static RadProperty PaddingProperty

Field Value

RadProperty

ParentChangedEvent

Routed event key for ParentChanged event. Tunnels when element parent changes

Declaration

cs-api-definition
public static RoutedEvent ParentChangedEvent

Field Value

RoutedEvent

PositionOffsetProperty

Declaration

cs-api-definition
public static RadProperty PositionOffsetProperty

Field Value

RadProperty

RightToLeftProperty

Declaration

cs-api-definition
public static RadProperty RightToLeftProperty

Field Value

RadProperty

ScaleTransformProperty

Declaration

cs-api-definition
public static RadProperty ScaleTransformProperty

Field Value

RadProperty

SetPropertyValueCommand

Declaration

cs-api-definition
public static readonly SetPropertyValueCommand SetPropertyValueCommand

Field Value

SetPropertyValueCommand

ShapeProperty

Declaration

cs-api-definition
public static RadProperty ShapeProperty

Field Value

RadProperty

ShouldPaintProperty

Declaration

cs-api-definition
public static readonly RadProperty ShouldPaintProperty

Field Value

RadProperty

StretchHorizontallyProperty

Declaration

cs-api-definition
public static readonly RadProperty StretchHorizontallyProperty

Field Value

RadProperty

StretchVerticallyProperty

Declaration

cs-api-definition
public static readonly RadProperty StretchVerticallyProperty

Field Value

RadProperty

StyleProperty

Declaration

cs-api-definition
public static RadProperty StyleProperty

Field Value

RadProperty

TagProperty

Declaration

cs-api-definition
public static readonly RadProperty TagProperty

Field Value

RadProperty

UseCompatibleTextRenderingProperty

Declaration

cs-api-definition
public static RadProperty UseCompatibleTextRenderingProperty

Field Value

RadProperty

VisibilityChangingEvent

Tunnels and bubbles when changes the current element

Declaration

cs-api-definition
public static RoutedEvent VisibilityChangingEvent

Field Value

RoutedEvent

VisibilityProperty

Declaration

cs-api-definition
public static RadProperty VisibilityProperty

Field Value

RadProperty

ZIndexProperty

Property key of the ZIndex Property.

Declaration

cs-api-definition
public static RadProperty ZIndexProperty

Field Value

RadProperty

paintSystemSkin

Declaration

cs-api-definition
protected bool? paintSystemSkin

Field Value

bool?

styleVersion

Declaration

cs-api-definition
protected int styleVersion

Field Value

int

Properties

Alignment

Gets or sets the preferred location of the element if its size is less than its parent size.

Declaration

cs-api-definition
public virtual ContentAlignment Alignment { get; set; }

Property Value

ContentAlignment

AngleTransform

Gets or sets the rotation transform angle used when painting the element and its children.

Declaration

cs-api-definition
public virtual float AngleTransform { get; set; }

Property Value

float

AutoNumberKeyTip

Declaration

cs-api-definition
protected virtual int AutoNumberKeyTip { get; set; }

Property Value

int

AutoSize

Gets or sets a value indicating whether the element size will be calculated automatically by the layout system. Value of false indicates that the element's size will not be changed when calculating the layout.

Declaration

cs-api-definition
public virtual bool AutoSize { get; set; }

Property Value

bool

AutoSizeMode

Gets or sets the way the element should calculate its Size, when the AutoSize property is set to true.

Declaration

cs-api-definition
public virtual RadAutoSizeMode AutoSizeMode { get; set; }

Property Value

RadAutoSizeMode

AutoToolTip

Declaration

cs-api-definition
public virtual bool AutoToolTip { get; set; }

Property Value

bool

BackgroundShape

Gets or sets the RadImageShape that describes the background of the element.

Declaration

cs-api-definition
[Browsable(false)]
[VsbBrowsable(true)]
public RadImageShape BackgroundShape { get; set; }

Property Value

RadImageShape

BackgroundShapePaintMode

Gets or sets a value indiicating when to paint the BackgroundShape.

Declaration

cs-api-definition
[Browsable(false)]
[VsbBrowsable(true)]
public BackgroundShapePaintMode BackgroundShapePaintMode { get; set; }

Property Value

BackgroundShapePaintMode

BorderThickness

Gets or sets the border thickness of the element. This thickness is included into the element's bounding rectangle.

Declaration

cs-api-definition
public virtual Padding BorderThickness { get; set; }

Property Value

Padding

BoundingRectangle

Represents the rectangle which surrounds the element bounds after the rotation caused by setting the AngleTransform property to some degree. The rectangle is in parent element's coordinates.

Declaration

cs-api-definition
public virtual Rectangle BoundingRectangle { get; }

Property Value

Rectangle

Bounds

Gets or sets a value corresponding to the bounding rectangle of the element. Location and/or Size portions of the bounds may be calculated automatically based on the current AutoSize and AutoSizeMode settings.

Declaration

cs-api-definition
public virtual Rectangle Bounds { get; set; }

Property Value

Rectangle

BypassLayoutPolicies

Declaration

cs-api-definition
[Browsable(false)]
public bool BypassLayoutPolicies { get; set; }

Property Value

bool

CanFocus

Gets or sets a value indicating whether the element can receive input focus.

Declaration

cs-api-definition
public virtual bool CanFocus { get; set; }

Property Value

bool

CanHaveOwnStyle

Gets a value indicating whether the element can have its own style with style conditions.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool CanHaveOwnStyle { get; }

Property Value

bool

Capture

Declaration

cs-api-definition
[Browsable(false)]
public bool Capture { get; set; }

Property Value

bool

CaptureOnMouseDown

Determines whether mouse will be captured upon MouseDown event.

Declaration

cs-api-definition
[Browsable(false)]
public bool CaptureOnMouseDown { get; set; }

Property Value

bool

Children

Gets the collection of elements that are child elements in the element tree.

Declaration

cs-api-definition
[Browsable(false)]
public virtual RadElementCollection Children { get; }

Property Value

RadElementCollection

ChildrenHierarchy

Enumerates entire subtree of elements (using depth-first approach), starting from this one as a root.

Declaration

cs-api-definition
[Browsable(false)]
public IEnumerable<RadElement> ChildrenHierarchy { get; }

Property Value

IEnumerable<RadElement>

Class

Gets or sets a string value indicating the element visual class name. It's used when a stylesheet has been applied to this element.

Declaration

cs-api-definition
[StyleBuilderReadOnly]
public string Class { get; set; }

Property Value

string

Remarks

Style sheets contain groups of property settings categorized by element type and/or class, thus element "class" is used to determine whether certain style rule would be applied over an element. Generally this property is assigned by the control developer but it can be changed design time or runtime if certain element is decided to have different style class.

ClickMode

Specifies when the Click event should fire.

Declaration

cs-api-definition
[Bindable(true)]
[SettingsBindable(true)]
public ClickMode ClickMode { get; set; }

Property Value

ClickMode

ClipDrawing

Indicates whether the painting of the element and its children should be restricted to its bounds.

Declaration

cs-api-definition
public bool ClipDrawing { get; set; }

Property Value

bool

ContainsFocus

Determines whether the element or one of its descendants currently contains the keyboard focus.

Declaration

cs-api-definition
[Browsable(false)]
public bool ContainsFocus { get; }

Property Value

bool

ContainsMouse

Determines whether the element or one of its descendants currently contains the mouse.

Declaration

cs-api-definition
[Browsable(false)]
public bool ContainsMouse { get; set; }

Property Value

bool

ControlBoundingRectangle

Represents the rectangle which surrounds the element bounds after the rotation caused by setting the AngleTransform property to some degree. The rectangle is in control coordinates.

Declaration

cs-api-definition
public virtual Rectangle ControlBoundingRectangle { get; }

Property Value

Rectangle

DesiredSize

Gets the element desired size.

Declaration

cs-api-definition
public SizeF DesiredSize { get; }

Property Value

SizeF

DoubleClickEnabled

Gets or sets a value indicating whether the DoubleClick event will fire for this item.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool DoubleClickEnabled { get; set; }

Property Value

bool

DpiScaleFactor

Gets or sets the DPI scale factor for the element.

Declaration

cs-api-definition
public SizeF DpiScaleFactor { get; protected set; }

Property Value

SizeF

ElementState

Gets the current state of the element.

Declaration

cs-api-definition
[Browsable(false)]
public ElementState ElementState { get; }

Property Value

ElementState

ElementTree

Gets a reference to the tree object, that contains information about the scene where the element is currently visualized.

Declaration

cs-api-definition
[Browsable(false)]
public virtual ComponentThemableElementTree ElementTree { get; }

Property Value

ComponentThemableElementTree

Enabled

Gets or sets a value indicating whether the element can respond to user interaction.

Declaration

cs-api-definition
public virtual bool Enabled { get; set; }

Property Value

bool

Remarks

By default, if element is currently selected when Enabled set to false, next element would be selected. Values inherits from Parent.Enabled. When a scrollable control is disabled, the scroll bars are also disabled. For example, a disabled multiline textbox is unable to scroll to display all the lines of text.

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

cs-api-definition
public virtual RadFitToSizeMode FitToSizeMode { get; set; }

Property Value

RadFitToSizeMode

InvalidateChildrenOnChildChanged

Provide for use within TelerikLayoutEngine.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool InvalidateChildrenOnChildChanged { get; set; }

Property Value

bool

IsAbleToRespondToMouseEvents

Gets a value indicating whether the element can respond to mouse input and has input focus.

Declaration

cs-api-definition
protected bool IsAbleToRespondToMouseEvents { get; }

Property Value

bool

IsArrangeValid

Declaration

cs-api-definition
[Browsable(false)]
public bool IsArrangeValid { get; }

Property Value

bool

IsElementVisible

Gets a value indicating if the element is visible.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool IsElementVisible { get; }

Property Value

bool

IsFocused

Gets a value indicating whether the element has input focus.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsFocused { get; }

Property Value

bool

IsItemHovered

Declaration

cs-api-definition
protected virtual bool IsItemHovered { get; }

Property Value

bool

IsLayoutSuspended

Gets a value indicating whether the layout is suspended or not.

Declaration

cs-api-definition
public bool IsLayoutSuspended { get; }

Property Value

bool

IsMeasureValid

Declaration

cs-api-definition
[Browsable(false)]
public bool IsMeasureValid { get; }

Property Value

bool

IsMouseDown

Gets or sets a value indicating whether the mouse button has been pressed when inside the bounds of the element.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsMouseDown { get; set; }

Property Value

bool

IsMouseOver

Gets or sets a value indicating whether the mouse has entered the bounds of the element or any of its sibling elements in the parent RadItem.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsMouseOver { get; set; }

Property Value

bool

IsMouseOverElement

Gets or sets a value indicating whether the mouse has entered the bounds of the element.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsMouseOverElement { get; set; }

Property Value

bool

IsThemeApplied

Gets a value indicating if theme finished applying

Declaration

cs-api-definition
[Browsable(false)]
public bool IsThemeApplied { get; }

Property Value

bool

LayoutableChildrenCount

Gets the count of all elements, which visibility is not Collapsed.

Declaration

cs-api-definition
[Browsable(false)]
public int LayoutableChildrenCount { get; }

Property Value

int

Location

Gets or sets the location of the element based on the element parent rectangle. Corresponds to Bounds.Location

Declaration

cs-api-definition
[Browsable(true)]
public virtual Point Location { get; set; }

Property Value

Point

Margin

Gets or sets a value corresponding to the margins of the element. Margins are not included into the element's bounding rectangle.

Declaration

cs-api-definition
public virtual Padding Margin { get; set; }

Property Value

Padding

MaxSize

Get or sets the maximum size to apply on an element when layout is calculated.

Declaration

cs-api-definition
public virtual Size MaxSize { get; set; }

Property Value

Size

MinSize

Get or sets the minimum size to apply on an element when layout is calculated.

Declaration

cs-api-definition
public virtual Size MinSize { get; set; }

Property Value

Size

Name

Represents the element unique name.

Declaration

cs-api-definition
[Browsable(false)]
[StyleBuilderReadOnly]
public virtual string Name { get; set; }

Property Value

string

NotifyParentOnMouseInput

Gets or sets a value indicating whether the element should pass the handled mouse event to the first parent element which has the ShouldHandleMouseInput property set to true.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool NotifyParentOnMouseInput { get; set; }

Property Value

bool

Padding

Gets or sets the padding sizes of the element. The paddings are included into the element's bounding rectangle.

Declaration

cs-api-definition
public virtual Padding Padding { get; set; }

Property Value

Padding

Parent

Gets a reference to the parent element in the visual element tree.

Declaration

cs-api-definition
[Browsable(false)]
public RadElement Parent { get; }

Property Value

RadElement

PositionOffset

Gets or sets the offset of the origin of the coordinate system used when painting the element and its children.

Declaration

cs-api-definition
public virtual SizeF PositionOffset { get; set; }

Property Value

SizeF

Remarks

TrnslateTransform of the graphics is used prior to painting the element and after painting element children, to reset the transformation

PropagateStyleToChildren

Defines whether stylesheet rules should be applied for this element and its children, or only for this element

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool PropagateStyleToChildren { get; }

Property Value

bool

RenderingMaxFramerate

Gets or sets a value indicating maximum rendered frames per second.

Declaration

cs-api-definition
public static int RenderingMaxFramerate { get; set; }

Property Value

int

RightToLeft

Gets or sets the direction of flow of the elements and whether elements are aligned to support locales using right-to-left fonts.

Declaration

cs-api-definition
public virtual bool RightToLeft { get; set; }

Property Value

bool

RoutedEventBehaviors

Gets the routed event behaviors collection for this element.

Declaration

cs-api-definition
[Browsable(false)]
public RoutedEventBehaviorCollection RoutedEventBehaviors { get; }

Property Value

RoutedEventBehaviorCollection

ScaleTransform

Gets or sets a value indicating the scale transform factors, when painting the element and its children.

Declaration

cs-api-definition
public virtual SizeF ScaleTransform { get; set; }

Property Value

SizeF

ScreenTip

Declaration

cs-api-definition
[TypeConverter(typeof(RadFilteredPropertiesConverter))]
public virtual RadScreenTipElement ScreenTip { get; set; }

Property Value

RadScreenTipElement

SerializeChildren

Gets or sets whether the children of this element should be serialized

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool SerializeChildren { get; set; }

Property Value

bool

SerializeElement

Gets or sets whether the element should be serialized in designer

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool SerializeElement { get; set; }

Property Value

bool

SerializeProperties

Gets or sets whether the properties of this element should be serialized

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool SerializeProperties { get; set; }

Property Value

bool

Shape

Gets or sets an instance of the Shape object of an element. The shape of the element is both responsible for clipping the element's children and for providing its' border(s) with custom shape.

Declaration

cs-api-definition
[TypeConverter(typeof(ElementShapeConverter))]
public virtual ElementShape Shape { get; set; }

Property Value

ElementShape

Remarks

Value of null (or Nothing in VisualBasic.Net) indicates that element has rectangular (or no) shape. Shape is an object that defines the bounding graphics path of an element. Graphics clip is always applied when an element has shape. Shape is considered when painting the border element, and when hit-testing an element. Some predefined shapes are available, like RoundRectShape or EllipseShape. CustomShape offers a way to specify element's shape with a sequence of points and curves using code or the design time ElementShapeEditor UITypeEditor.

ShouldApplyTheme

Gets a value indicating if a theme should be applied

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool ShouldApplyTheme { get; set; }

Property Value

bool

ShouldHandleMouseInput

Specifies whether the Item should handle MouseOver, MouseMove and related mouse events.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool ShouldHandleMouseInput { get; set; }

Property Value

bool

Remarks

By default only elements that inherit RadItem can process mouse input.

ShouldPaint

Gets or sets a value indicating whether the element should be painted.

Declaration

cs-api-definition
public virtual bool ShouldPaint { get; set; }

Property Value

bool

Remarks

Children visibility is not be affected.

ShouldPaintUsingParentShape

Declaration

cs-api-definition
protected virtual bool ShouldPaintUsingParentShape { get; }

Property Value

bool

Size

Gets or sets the size of the element which is the height and width of the visual rectangle that would contain the graphics of the element. Size corresponds to element's Bounds.Size. When the AutoSize property is set to true setting the Size property to some value has no effect.

Declaration

cs-api-definition
[Browsable(true)]
public virtual Size Size { get; set; }

Property Value

Size

StretchHorizontally

Declaration

cs-api-definition
public virtual bool StretchHorizontally { get; set; }

Property Value

bool

StretchVertically

Declaration

cs-api-definition
public virtual bool StretchVertically { get; set; }

Property Value

bool

Style

Gets or sets the stylesheet associated with the element.

Declaration

cs-api-definition
[Browsable(false)]
[TypeConverter(typeof(ComponentConverter))]
public StyleSheet Style { get; set; }

Property Value

StyleSheet

Implements IStylableNode.Style

Remarks

Stylesheets provide dynamic property settings for elements' RadProperties organized into groups, each regarding a certain state of the element. State means a property has certain value. Style of an element can affect also element children. Generally element style is set through control theme, which is a holder for various styles for many controls.

Tag

Declaration

cs-api-definition
[Bindable(true)]
[TypeConverter(typeof(StringConverter))]
public object Tag { get; set; }

Property Value

object

ThemeEffectiveType

Declaration

cs-api-definition
protected virtual Type ThemeEffectiveType { get; }

Property Value

Type

ToolTipText

Declaration

cs-api-definition
public virtual string ToolTipText { get; set; }

Property Value

string

TotalTransform

Declaration

cs-api-definition
[Browsable(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public RadMatrix TotalTransform { get; }

Property Value

RadMatrix

Transform

Declaration

cs-api-definition
[Browsable(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public RadMatrix Transform { get; }

Property Value

RadMatrix

TreeLevel

Gets the level of this element in the ElementTree it currently resides.

Declaration

cs-api-definition
[Browsable(false)]
public byte TreeLevel { get; }

Property Value

byte

UseCenteredAngleTransform

Gets a value indicating whether the AngleTransform should use the center of the object as origin for the transformation.

Declaration

cs-api-definition
[Browsable(false)]
public bool UseCenteredAngleTransform { get; set; }

Property Value

bool

UseCompatibleTextRendering

Determines whether to use compatible text rendering engine (GDI+) or not (GDI).

Declaration

cs-api-definition
public virtual bool UseCompatibleTextRendering { get; set; }

Property Value

bool

UseSystemSkin

Gets or sets the mode that describes the usage of system skinning (if available).

Declaration

cs-api-definition
public virtual UseSystemSkinMode UseSystemSkin { get; set; }

Property Value

UseSystemSkinMode

Implements ISupportSystemSkin.UseSystemSkin

Visibility

Gets or sets a value indicating element visibility.

Declaration

cs-api-definition
public virtual ElementVisibility Visibility { get; set; }

Property Value

ElementVisibility

Remarks

Setting this property affects also the children of the element. Collapsed means the element and its children would not be painted and would not be calculated in the layout. This property has no effect in design-time on objects.

ZIndex

Gets of sets the order of painting an element compared to its sibling elements. Greater ZIndex means an element would be painted on top of other elements amongst its siblings. ZIndex changes the order of the elements in the list returned by GetChildren(ChildrenListOptions).

Declaration

cs-api-definition
public virtual int ZIndex { get; set; }

Property Value

int

Methods

AddBehavior(PropertyChangeBehavior)

Adds a property change behavior to the list of behaviors of the element.

Declaration

cs-api-definition
public void AddBehavior(PropertyChangeBehavior behavior)

Parameters

behavior

PropertyChangeBehavior

behavior instance - should not be null (or Nothing in VB.NET)

Remarks

Behaviors can be used to specify how an element should respond when a certain element property changes. Behaviors are used internally by stylesheets when applying to an hierarchy of elements.

AddRangeBehavior(PropertyChangeBehaviorCollection)

Declaration

cs-api-definition
public void AddRangeBehavior(PropertyChangeBehaviorCollection behaviors)

Parameters

behaviors

PropertyChangeBehaviorCollection

list of behaviors

AddStylePropertySetting(IPropertySetting)

Registers a style setting for this instance.

Declaration

cs-api-definition
protected override ValueUpdateResult AddStylePropertySetting(IPropertySetting setting)

Parameters

setting

IPropertySetting

Returns

ValueUpdateResult

Overrides RadObject.AddStylePropertySetting(IPropertySetting)

Arrange(RectangleF)

Positions and sizes the element within the specified rectangular area.

Declaration

cs-api-definition
public void Arrange(RectangleF finalRect)

Parameters

finalRect

RectangleF

The final rectangular area allocated for this element by its parent.

Exceptions

InvalidOperationException

Thrown when finalRect contains infinity or NaN values.

Remarks

Arrange is a core method in the two-pass layout system (Measure/Arrange). It is called by parent elements to position and size child elements after the Measure pass has determined the desired sizes.

This method handles layout suspension, visibility checks, arranges children through their layout panels, and ensures that layout operations are properly coordinated through the layout manager. It automatically triggers Measure if the element hasn't been measured or if measure data is invalid.

The method validates the finalRect for infinity and NaN values and respects element visibility settings. Collapsed elements skip arrangement but still record their final rectangle for reference.

ArrangeCore(RectangleF)

Performs the core arrangement logic for the element within the specified final rectangle.

Declaration

cs-api-definition
protected virtual void ArrangeCore(RectangleF finalRect)

Parameters

finalRect

RectangleF

The final rectangular area allocated for this element.

ArrangeOverride(SizeF)

Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.

Declaration

cs-api-definition
protected virtual SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The size that is available for element.

Returns

SizeF

The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.

Remarks

In this method call to the Arrange method of each child must be made.

BringToFront()

Sends this element at the end of its parent's z-ordered collection.

Declaration

cs-api-definition
public void BringToFront()

CalcLayoutOffset(PointF)

Calculates the layout offset for the element based on the start point.

Declaration

cs-api-definition
protected virtual PointF CalcLayoutOffset(PointF startPoint)

Parameters

startPoint

PointF

The starting point for the layout calculation.

Returns

PointF

The calculated layout offset.

CallCreateChildElements()

Creates the child elements and sets their locally applied values as Default

Declaration

cs-api-definition
protected virtual void CallCreateChildElements()

CanExecuteLayoutOperation()

Determines whether the element can perform layout operation.

Declaration

cs-api-definition
protected virtual bool CanExecuteLayoutOperation()

Returns

bool

True if layout operations can be performed, false otherwise.

CanRaisePropertyChangeNotifications(RadPropertyValue)

Determines whether the object can raise PropertyChanging and PropertyChanged notifications. Current implementation checks whether the object is disposing or is already disposed of.

Declaration

cs-api-definition
protected override bool CanRaisePropertyChangeNotifications(RadPropertyValue propVal)

Parameters

propVal

RadPropertyValue

Returns

bool

Overrides RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)

ClearBehaviors()

Declaration

cs-api-definition
public void ClearBehaviors()

ComposeShouldPaintSystemSkin()

Composes a value which determines whether the element should use system skins when painting. This method will traverse the element and control tree and will end with the global UseSystemSkin property.

Declaration

cs-api-definition
protected virtual bool ComposeShouldPaintSystemSkin()

Returns

bool

CreateChildElements()

Called by the element when constructed. Allows inheritors to build the element tree.

Declaration

cs-api-definition
protected virtual void CreateChildElements()

DisposeChildren()

Declaration

cs-api-definition
public void DisposeChildren()

DisposeManagedResources()

Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadObject.DisposeManagedResources()

DoClick(EventArgs)

Declaration

cs-api-definition
protected virtual void DoClick(EventArgs e)

Parameters

e

EventArgs

DoDoubleClick(EventArgs)

Declaration

cs-api-definition
protected virtual void DoDoubleClick(EventArgs e)

Parameters

e

EventArgs

DoMouseDown(MouseEventArgs)

Called when the mouse button is pressed down over this element.

Declaration

cs-api-definition
protected virtual void DoMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

DoMouseEnter(EventArgs)

Called when the mouse enters this element.

Declaration

cs-api-definition
protected virtual void DoMouseEnter(EventArgs e)

Parameters

e

EventArgs

The event arguments.

DoMouseHover(EventArgs)

Called when the mouse hovers over this element.

Declaration

cs-api-definition
protected virtual void DoMouseHover(EventArgs e)

Parameters

e

EventArgs

The event arguments.

DoMouseLeave(EventArgs)

Called when the mouse leaves this element.

Declaration

cs-api-definition
protected virtual void DoMouseLeave(EventArgs e)

Parameters

e

EventArgs

The event arguments.

DoMouseMove(MouseEventArgs)

Called when the mouse is moved over this element.

Declaration

cs-api-definition
protected virtual void DoMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

DoMouseUp(MouseEventArgs)

Called when the mouse button is released over this element.

Declaration

cs-api-definition
protected virtual void DoMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

DoMouseWheel(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void DoMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

DpiScaleChanged(SizeF)

Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.

Declaration

cs-api-definition
public virtual void DpiScaleChanged(SizeF scaleFactor)

Parameters

scaleFactor

SizeF

The new DPI scale factor.

EnumDescendants(Filter, TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance that match the provided filter.

Declaration

cs-api-definition
public IEnumerable<RadElement> EnumDescendants(Filter filter, TreeTraversalMode traverseMode)

Parameters

filter

Filter

The filter that defines the match criteria.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<RadElement>

An enumerable collection of descendant elements matching the filter.

EnumDescendants(Predicate<RadElement>, TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance that match the provided predicate.

Declaration

cs-api-definition
public IEnumerable<RadElement> EnumDescendants(Predicate<RadElement> predicate, TreeTraversalMode traverseMode)

Parameters

predicate

Predicate<RadElement>

The filter that defines the match criteria.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<RadElement>

An enumerable collection of descendant elements matching the predicate.

EnumDescendants(TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance that match the provided predicate.

Declaration

cs-api-definition
public IEnumerable<RadElement> EnumDescendants(TreeTraversalMode traverseMode)

Parameters

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<RadElement>

An enumerable collection of descendant elements.

FindAncestor<T>()

Searches up the parent chain and returns the first parent of type T.

Declaration

cs-api-definition
public T FindAncestor<T>() where T : RadElement

Returns

T

The first parent element of the specified type; otherwise, null.

FindAncestorByThemeEffectiveType(Type)

Searches up the parent chain and returns the first parent with the provided ThemeEffectiveType.

Declaration

cs-api-definition
public RadElement FindAncestorByThemeEffectiveType(Type themeEffectiveType)

Parameters

themeEffectiveType

Type

The theme effective type to search for.

Returns

RadElement

The first parent element with the specified theme effective type; otherwise, null.

FindDescendant(Predicate<RadElement>)

Searches down the subtree of elements, using breadth-first approach, and returns the first descendant that matches the provided predicate.

Declaration

cs-api-definition
public RadElement FindDescendant(Predicate<RadElement> criteria)

Parameters

criteria

Predicate<RadElement>

The predicate used to filter elements.

Returns

RadElement

The first descendant element matching the criteria; otherwise, null.

FindDescendant(Type)

Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of the specified Type.

Declaration

cs-api-definition
public RadElement FindDescendant(Type descendantType)

Parameters

descendantType

Type

The type of descendant element to search for.

Returns

RadElement

The first descendant element of the specified type; otherwise, null.

FindDescendant<T>()

Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.

Declaration

cs-api-definition
public T FindDescendant<T>() where T : RadElement

Returns

T

The first descendant element of the specified type; otherwise, null.

Focus()

Attempts to set the keyboard focus to the element.

Declaration

cs-api-definition
public virtual bool Focus()

Returns

bool

True if the keyboard focus is successfully set to the element; otherwise, false.

Focus(bool)

Attempts to set the keyboard focus to the element, optionally setting parent control focus.

Declaration

cs-api-definition
protected bool Focus(bool setParentControlFocus)

Parameters

setParentControlFocus

bool

True to also set focus to the parent control; otherwise, false.

Returns

bool

True if the keyboard focus is successfully set to the element; otherwise, false.

GetAncestors(Filter)

Provides a routine which enumerates all ancestors up in the parent chain of this element, which match the provided Filter.

Declaration

cs-api-definition
public IEnumerable<RadElement> GetAncestors(Filter filter)

Parameters

filter

Filter

The filter used to match ancestor elements.

Returns

IEnumerable<RadElement>

An enumerable collection of ancestor elements matching the filter.

GetAncestors(Predicate<RadElement>)

Provides a routine which enumerates all ancestors up in the parent chain of this element, which match the provided predicate.

Declaration

cs-api-definition
public IEnumerable<RadElement> GetAncestors(Predicate<RadElement> predicate)

Parameters

predicate

Predicate<RadElement>

The predicate used to filter parents.

Returns

IEnumerable<RadElement>

An enumerable collection of ancestor elements matching the predicate.

GetArrangeRect(RectangleF)

Gets the arrange rectangle, valid for this element.

Declaration

cs-api-definition
protected virtual RectangleF GetArrangeRect(RectangleF proposed)

Parameters

proposed

RectangleF

The proposed rectangle.

Returns

RectangleF

The arrange rectangle for this element.

GetAsBitmap(Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsBitmap(Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsBitmap(IGraphics, Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsBitmap(IGraphics screenRadGraphics, Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

screenRadGraphics

IGraphics

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsBitmapEx(Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsBitmapEx(Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsBitmapEx(Color, float, SizeF)

Declaration

cs-api-definition
public virtual Bitmap GetAsBitmapEx(Color backColor, float totalAngle, SizeF totalScale)

Parameters

backColor

Color

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsTransformedBitmap(Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsTransformedBitmap(Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsTransformedBitmap(IGraphics screenRadGraphics, Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

screenRadGraphics

IGraphics

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)

Declaration

cs-api-definition
public Bitmap GetAsTransformedBitmap(Rectangle clippingRectangle, Brush backgroundBrush, float totalAngle, SizeF totalScale)

Parameters

clippingRectangle

Rectangle

backgroundBrush

Brush

totalAngle

float

totalScale

SizeF

Returns

Bitmap

GetBehaviors()

Gets the property change behaviors collection for this element.

Declaration

cs-api-definition
public PropertyChangeBehaviorCollection GetBehaviors()

Returns

PropertyChangeBehaviorCollection

The collection of property change behaviors.

GetBorderThickness(BorderPrimitive)

Declaration

cs-api-definition
protected Padding GetBorderThickness(BorderPrimitive element)

Parameters

element

BorderPrimitive

Returns

Padding

GetBoundingRectangle(Rectangle)

Gets the rectangle which surrounds the rotated element (if having AngleTransform property set).

Declaration

cs-api-definition
public Rectangle GetBoundingRectangle(Rectangle bounds)

Parameters

bounds

Rectangle

The bounds of the element.

Returns

Rectangle

A rectangle that bounds the transformed element.

GetBoundingRectangle(Size)

Gets the rectangle which surrounds the rotated element (if having AngleTransform property set).

Declaration

cs-api-definition
public Rectangle GetBoundingRectangle(Size size)

Parameters

size

Size

The size of the element which is accepted as a parameter (for example when returned from GetPreferredSize).

Returns

Rectangle

A rectangle that bounds the transformed element.

GetChildren(ChildrenListOptions)

Allows enumerating of this element's children, using the specified options.

Declaration

cs-api-definition
public IEnumerable<RadElement> GetChildren(ChildrenListOptions options)

Parameters

options

ChildrenListOptions

The enumeration options to use.

Returns

IEnumerable<RadElement>

An enumerable collection of child elements based on the specified options.

GetChildrenByBaseType(Type)

Gets a list of child elements using the base type to filter the results.

Declaration

cs-api-definition
public List<RadElement> GetChildrenByBaseType(Type type)

Parameters

type

Type

The base type to filter child elements by.

Returns

List<RadElement>

A list of child elements derived from the specified base type.

GetChildrenByType(Type)

Gets a list of child elements using the type to filter the results.

Declaration

cs-api-definition
public List<RadElement> GetChildrenByType(Type type)

Parameters

type

Type

The type to filter child elements by.

Returns

List<RadElement>

A list of child elements of the specified type.

GetClientRectangle(SizeF)

Declaration

cs-api-definition
protected virtual RectangleF GetClientRectangle(SizeF finalSize)

Parameters

finalSize

SizeF

Returns

RectangleF

GetClipRect()

Declaration

cs-api-definition
protected virtual RectangleF GetClipRect()

Returns

RectangleF

GetCurrentShape()

Declaration

cs-api-definition
protected ElementShape GetCurrentShape()

Returns

ElementShape

GetDescendants(Filter, TreeTraversalMode)

Gets a list with all the descendants that match the provided filter.

Declaration

cs-api-definition
public List<RadElement> GetDescendants(Filter filter, TreeTraversalMode traverseMode)

Parameters

filter

Filter

The filter used to match descendant elements.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

List<RadElement>

A list of descendant elements matching the filter.

GetDescendants(Predicate<RadElement>, TreeTraversalMode)

Gets a list with all the descendants that match the provided predicate.

Declaration

cs-api-definition
public List<RadElement> GetDescendants(Predicate<RadElement> predicate, TreeTraversalMode traverseMode)

Parameters

predicate

Predicate<RadElement>

The predicate used to filter descendant elements.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

List<RadElement>

A list of descendant elements matching the predicate.

GetDesiredSize(bool)

Gets the desired size of the element, optionally checking if the element is collapsed.

Declaration

cs-api-definition
public SizeF GetDesiredSize(bool checkCollapsed)

Parameters

checkCollapsed

bool

True to return empty size if the element is collapsed.

Returns

SizeF

The desired size of the element.

GetFocusRect()

Declaration

cs-api-definition
protected virtual Rectangle GetFocusRect()

Returns

Rectangle

GetInvalidateBounds()

Returns the bounds of the area that should be invalidated when the element is invalidated.

Declaration

cs-api-definition
public virtual Rectangle GetInvalidateBounds()

Returns

Rectangle

The bounds to invalidate.

GetPaintRectangle(float, float, SizeF)

Declaration

cs-api-definition
protected RectangleF GetPaintRectangle(float borderWidth, float angle, SizeF scale)

Parameters

borderWidth

float

angle

float

scale

SizeF

Returns

RectangleF

GetPatchedRect(RectangleF, float, SizeF)

Declaration

cs-api-definition
protected RectangleF GetPatchedRect(RectangleF rect, float angle, SizeF scale)

Parameters

rect

RectangleF

angle

float

scale

SizeF

Returns

RectangleF

GetRegisterRoutedEvent(string)

Gets a registered routed event by name for this element's type.

Declaration

cs-api-definition
public RoutedEvent GetRegisterRoutedEvent(string eventName)

Parameters

eventName

string

The name of the routed event.

Returns

RoutedEvent

The registered routed event if found; otherwise, null.

GetRegisterRoutedEvent(string, Type)

Gets a registered routed event by name and owner type.

Declaration

cs-api-definition
public static RoutedEvent GetRegisterRoutedEvent(string eventName, Type ownerType)

Parameters

eventName

string

The name of the routed event.

ownerType

Type

The type that owns the routed event.

Returns

RoutedEvent

The registered routed event if found; otherwise, null.

GetRegisterRoutedEvent(string, string)

Gets a registered routed event by name and class name.

Declaration

cs-api-definition
public static RoutedEvent GetRegisterRoutedEvent(string eventName, string className)

Parameters

eventName

string

The name of the routed event.

className

string

The name of the class that owns the routed event.

Returns

RoutedEvent

The registered routed event if found; otherwise, null.

GetShadowRect(ref Rectangle, int)

Declaration

cs-api-definition
protected virtual Rectangle GetShadowRect(ref Rectangle elementRect, int shadowDepth)

Parameters

elementRect

Rectangle

shadowDepth

int

Returns

Rectangle

GetStylableChildren()

Declaration

cs-api-definition
protected virtual IEnumerable<RadObject> GetStylableChildren()

Returns

IEnumerable<RadObject>

GetStylableChildrenHierarchy()

Declaration

cs-api-definition
protected virtual IEnumerable<RadObject> GetStylableChildrenHierarchy()

Returns

IEnumerable<RadObject>

GetStylablePropertiesFilter()

Gets the IFilter instance that may be used to filter the properties, treated as Stylable for this element.

Declaration

cs-api-definition
public virtual Filter GetStylablePropertiesFilter()

Returns

Filter

GetSystemSkinPaintBounds()

Gets the rectangle where skin background should be painted. Defaults to BoundingRectangle.

Declaration

cs-api-definition
protected virtual Rectangle GetSystemSkinPaintBounds()

Returns

Rectangle

The rectangle where skin background should be painted.

GetThemeEffectiveType()

Declaration

cs-api-definition
public Type GetThemeEffectiveType()

Returns

Type

GetValue(RadProperty)

Retrieves the current effective value for the specified RadProperty, resolving through the property value composition hierarchy.

Declaration

cs-api-definition
public override object GetValue(RadProperty property)

Parameters

property

RadProperty

The RadProperty for which to retrieve the current value.

Returns

object

The current effective value of the property, which may come from local, style, inherited, or default value sources.

Overrides RadObject.GetValue(RadProperty)

GetVistaVisualStyle()

Gets the VisualStyleElement instance that describes the skin appearance for the element when the current OS is Windows Vista.

Declaration

cs-api-definition
public virtual VisualStyleElement GetVistaVisualStyle()

Returns

VisualStyleElement

The visual style element for Windows Vista.

Implements ISupportSystemSkin.GetVistaVisualStyle()

GetXPVisualStyle()

Gets the Visual Style Element instance that describes the skin appearance for the element when the current OS is Windows XP.

Declaration

cs-api-definition
public virtual VisualStyleElement GetXPVisualStyle()

Returns

VisualStyleElement

The visual style element for Windows XP.

Implements ISupportSystemSkin.GetXPVisualStyle()

HasInvisibleAncestor()

Determines whether there is an ancestor in this element tree that is not visible.

Declaration

cs-api-definition
public bool HasInvisibleAncestor()

Returns

bool

True if an invisible ancestor exists, false otherwise.

HideScreenTip()

Hides the currently displayed screen tip.

Declaration

cs-api-definition
protected virtual void HideScreenTip()

HitTest(Point)

Performs hit testing on the element to determine if the specified point lies within its bounds.

Declaration

cs-api-definition
public virtual bool HitTest(Point point)

Parameters

point

Point

The point to test in control coordinates.

Returns

bool

True if the point is within the element bounds, false otherwise.

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

cs-api-definition
protected virtual void InitializeFields()

InitializeSystemSkinPaint()

Performs initialization when the element is first-time painted using system skin.

Declaration

cs-api-definition
protected virtual void InitializeSystemSkinPaint()

Invalidate()

Invalidates the element and schedules it for repainting.

Declaration

cs-api-definition
public void Invalidate()

Invalidate(bool)

Invalidates the element and schedules it for repainting, optionally checking if layout is suspended.

Declaration

cs-api-definition
public void Invalidate(bool checkSuspended)

Parameters

checkSuspended

bool

True to check if layout is suspended before invalidating.

InvalidateArrange()

Invalidates the arrangement state of the element, causing it to be re-arranged during the next layout pass.

Declaration

cs-api-definition
public void InvalidateArrange()

Remarks

This overload calls InvalidateArrange(false), invalidating only this element. Use this method when the element's position or arrangement-affecting properties have changed.

InvalidateArrange(bool)

Invalidates the arrangement state of the element and optionally its children, causing them to be re-arranged during the next layout pass.

Declaration

cs-api-definition
public void InvalidateArrange(bool recursive)

Parameters

recursive

bool

True to invalidate this element and all its children; false for this element only.

Remarks

InvalidateArrange marks the element as needing arrangement and adds it to the layout manager's arrange queue if layout is not currently suspended. This is typically called when properties that affect the element's position or size have changed.

The method respects the element's state and layout suspension. If layout is suspended, the invalidation is recorded but the element won't be queued for arrangement until layout is resumed.

InvalidateMeasure()

Invalidates the measurement state of the element, causing it to be re-measured during the next layout pass.

Declaration

cs-api-definition
public void InvalidateMeasure()

Remarks

This overload calls InvalidateMeasure(false), invalidating only this element. Use this method when the element's content or measurement-affecting properties have changed.

InvalidateMeasure(bool)

Invalidates the measurement state of the element and optionally its children, causing them to be re-measured during the next layout pass.

Declaration

cs-api-definition
public void InvalidateMeasure(bool recursive)

Parameters

recursive

bool

True to invalidate this element and all its children; false for this element only.

Remarks

InvalidateMeasure marks the element as needing measurement and adds it to the layout manager's measure queue if layout is not currently suspended. This is typically called when properties that affect the element's desired size have changed.

The method respects the element's state and layout suspension. If layout is suspended, the invalidation is recorded but the element won't be queued for measurement until layout is resumed.

IsAncestorOf(RadElement)

Gets a boolean value that determines whether a given element resides in the element hierarchy of this element.

Declaration

cs-api-definition
public bool IsAncestorOf(RadElement element)

Parameters

element

RadElement

An instance of the RadElement class which is checked.

Returns

bool

True if the element is a descendant of this element; otherwise, false.

IsChildOf(RadElement)

Get a value indicating whether the element is a direct or indirect child of specified parent element

Declaration

cs-api-definition
public bool IsChildOf(RadElement parent)

Parameters

parent

RadElement

Parent to test

Returns

bool

true if the element is child of parent, false otherwise

IsEventInProcess(RaisedRoutedEvent)

Determines whether a specific routed event is currently being processed.

Declaration

cs-api-definition
public bool IsEventInProcess(RaisedRoutedEvent raisedEvent)

Parameters

raisedEvent

RaisedRoutedEvent

The routed event to check for processing status.

Returns

bool

True if the event is currently being processed; otherwise, false.

IsInGetAsBitmap()

Declaration

cs-api-definition
protected bool IsInGetAsBitmap()

Returns

bool

IsInValidState(bool)

Determines whether the element is currently in valid state. That is having a valid ElementTree reference and being in either Constructed or Loaded state.

Declaration

cs-api-definition
public bool IsInValidState(bool checkElementTree)

Parameters

checkElementTree

bool

True to check if element tree is valid, false otherwise.

Returns

bool

True if the element is in valid state, false otherwise.

IsInVisibleClipBounds(Rectangle)

Declaration

cs-api-definition
protected virtual bool IsInVisibleClipBounds(Rectangle clipRectangle)

Parameters

clipRectangle

Rectangle

Returns

bool

IsInputKey(InputKeyEventArgs)

Determines whether a key is an input key that should be handled by the element.

Declaration

cs-api-definition
protected virtual bool IsInputKey(InputKeyEventArgs e)

Parameters

e

InputKeyEventArgs

The input key event arguments.

Returns

bool

True if the key is an input key; otherwise, false.

IsPropertyCancelable(RadPropertyMetadata)

Determines whether the specified property may be canceled.

Declaration

cs-api-definition
protected override bool IsPropertyCancelable(RadPropertyMetadata metadata)

Parameters

metadata

RadPropertyMetadata

The metadata associated with the property change.

Returns

bool

Overrides RadObject.IsPropertyCancelable(RadPropertyMetadata)

KillFocus()

Removes keyboard focus from the element.

Declaration

cs-api-definition
protected virtual void KillFocus()

LoadCore()

Allows inheritors to provide custom load logic.

Declaration

cs-api-definition
protected virtual void LoadCore()

LocationToControl()

Gets the location of this element in control coordinates.

Declaration

cs-api-definition
public Point LocationToControl()

Returns

Point

The location in control coordinates.

LockBounds()

Locks the bounds of the element to prevent changes during critical operations.

Declaration

cs-api-definition
protected virtual void LockBounds()

Measure(SizeF)

Calculates the desired size of the element given the specified available space.

Declaration

cs-api-definition
public void Measure(SizeF availableSize)

Parameters

availableSize

SizeF

The available space that can be allocated to this element by its parent.

Exceptions

InvalidOperationException

Thrown when availableSize contains NaN values.

Remarks

Measure is the first pass of the two-pass layout system (Measure/Arrange). It determines how much space the element would like to occupy based on its content and the constraints provided by its parent.

This method handles layout suspension, validates the availableSize for NaN values, respects element visibility, and coordinates with the layout manager to ensure proper measurement sequencing. The calculated desired size becomes available through the DesiredSize property.

Collapsed elements are given zero desired size but still participate in the measurement process. The method is optimized to avoid redundant measurements when the available size hasn't changed.

MeasureChildren(SizeF)

Declaration

cs-api-definition
protected SizeF MeasureChildren(SizeF availableSize)

Parameters

availableSize

SizeF

Returns

SizeF

MeasureCore(SizeF)

Performs the core measurement logic for the element with the specified available size.

Declaration

cs-api-definition
protected virtual SizeF MeasureCore(SizeF availableSize)

Parameters

availableSize

SizeF

The available space that can be allocated to this element.

Returns

SizeF

The minimum size required by the element to be completely visible.

MeasureOverride(SizeF)

Measures the space required by the RadElement

Used by the layout system.

Declaration

cs-api-definition
protected virtual SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Remarks

In this method call to the Measure method of each child must be made.

MouseEventArgsFromControl(MouseEventArgs)

Converts mouse event arguments from control coordinates to element coordinates.

Declaration

cs-api-definition
protected virtual MouseEventArgs MouseEventArgsFromControl(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments to convert.

Returns

MouseEventArgs

Mouse event arguments with coordinates relative to this element.

NotifyChildren(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void NotifyChildren(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

NotifyInvalidate(RadElement)

Declaration

cs-api-definition
protected virtual void NotifyInvalidate(RadElement invalidatedChild)

Parameters

invalidatedChild

RadElement

OnBeginDispose()

A callback used by the owning RadControl to notify the element for the beginning of a disposing process.

Declaration

cs-api-definition
protected virtual void OnBeginDispose()

OnBoundsChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnBoundsChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnBubbleEvent(RadElement, RoutedEventArgs)

Called when the bubble phase of a routed event occurs.

Declaration

cs-api-definition
protected virtual void OnBubbleEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The element that originally raised the event.

args

RoutedEventArgs

The routed event arguments.

OnCLREventsRise(RoutedEventArgs)

Declaration

cs-api-definition
protected virtual void OnCLREventsRise(RoutedEventArgs args)

Parameters

args

RoutedEventArgs

OnChildDesiredSizeChanged(RadElement)

Called when a child's desired size has changed.

Declaration

cs-api-definition
protected virtual void OnChildDesiredSizeChanged(RadElement child)

Parameters

child

RadElement

The child element whose desired size changed.

OnChildrenChanged(RadElement, ItemsChangeOperation)

Declaration

cs-api-definition
protected virtual void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)

Parameters

child

RadElement

changeOperation

ItemsChangeOperation

OnClick(EventArgs)

Raises the Click event.

Declaration

cs-api-definition
protected virtual void OnClick(EventArgs e)

Parameters

e

EventArgs

OnDisplayPropertyChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnDisplayPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnDoubleClick(EventArgs)

Raises the DoubleClick event.

Declaration

cs-api-definition
protected virtual void OnDoubleClick(EventArgs e)

Parameters

e

EventArgs

OnElementTreeChanged(ComponentThemableElementTree)

The element gets notified for a change in its current ElementTree member.

Declaration

cs-api-definition
protected virtual void OnElementTreeChanged(ComponentThemableElementTree previousTree)

Parameters

previousTree

ComponentThemableElementTree

The previous element tree instance.

OnEnabledChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnEnabledChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnLayoutPropertyChanged(RadPropertyChangedEventArgs)

Called when a layout property has changed.

Declaration

cs-api-definition
protected virtual void OnLayoutPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The property changed event arguments.

OnLoad(bool)

A callback used by the owning RadControl to notify the element for a first-time screen visualization.

Declaration

cs-api-definition
protected void OnLoad(bool recursive)

Parameters

recursive

bool

True to notify entire subtree for the load process, false otherwise.

OnLoaded()

Called when the element has been successfully loaded. That includes loading of all its children as well.

Declaration

cs-api-definition
protected virtual void OnLoaded()

OnLocationChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnLocationChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnLostMouseCapture(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void OnLostMouseCapture(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseDown(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseEnter(EventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseEnter(EventArgs e)

Parameters

e

EventArgs

OnMouseHover(EventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseHover(EventArgs e)

Parameters

e

EventArgs

OnMouseLeave(EventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseUp(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration

cs-api-definition
protected virtual void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

OnParentChanged(RadElement)

Notifies for a change in the Parent value.

Declaration

cs-api-definition
protected virtual void OnParentChanged(RadElement previousParent)

Parameters

previousParent

RadElement

The previous parent element (if any)

OnParentEnabledChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnParentEnabledChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnParentPropertyChanged(RadPropertyChangedEventArgs)

The object gets notified for a parent property change.

Declaration

cs-api-definition
protected virtual void OnParentPropertyChanged(RadPropertyChangedEventArgs args)

Parameters

args

RadPropertyChangedEventArgs

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)

OnRenderSizeChanged(SizeChangedInfo)

Called when the render size of the element has changed.

Declaration

cs-api-definition
protected virtual void OnRenderSizeChanged(SizeChangedInfo info)

Parameters

info

SizeChangedInfo

The size change information.

OnShowScreenTip(ComponentInputBehavior)

Shows a screen tip.

Declaration

cs-api-definition
protected virtual bool OnShowScreenTip(ComponentInputBehavior inputBehavior)

Parameters

inputBehavior

ComponentInputBehavior

The input behavior.

Returns

bool

A value indicating whether a screen tip is shown.

OnStyleChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnStyleChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

OnTransformationInvalidated()

This method is executed when a property which affects the absolute position of the element has been changed.

Declaration

cs-api-definition
protected virtual void OnTransformationInvalidated()

OnTunnelEvent(RadElement, RoutedEventArgs)

Called when the tunnel phase of a routed event occurs.

Declaration

cs-api-definition
protected virtual void OnTunnelEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The element that originally raised the event.

args

RoutedEventArgs

The routed event arguments.

OnUnload(ComponentThemableElementTree, bool)

Unloads the element if it was previously loaded on an element tree.

Declaration

cs-api-definition
protected void OnUnload(ComponentThemableElementTree oldTree, bool recursive)

Parameters

oldTree

ComponentThemableElementTree

Reference to the element tree from which we are in a process of unload.

recursive

bool

True to unload children recursively, false otherwise.

OnUnloaded(ComponentThemableElementTree)

Notifies that the element has been successfully unloaded from an element tree. Allows inheritors to provide custom logic at this stage.

Declaration

cs-api-definition
protected virtual void OnUnloaded(ComponentThemableElementTree oldTree)

Parameters

oldTree

ComponentThemableElementTree

Reference to the element tree from which the element has been unloaded.

OnUseSystemSkinChanged(EventArgs)

The element gets notified for a change in the UseSystemSkin property. This method will recursively notify all descendants for the change.

Declaration

cs-api-definition
protected virtual void OnUseSystemSkinChanged(EventArgs e)

Parameters

e

EventArgs

PaintBackgroundShape(IGraphics)

Declaration

cs-api-definition
protected virtual void PaintBackgroundShape(IGraphics graphics)

Parameters

graphics

IGraphics

PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)

Declaration

cs-api-definition
protected virtual void PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)

Parameters

child

RadElement

graphics

IGraphics

clipRectange

Rectangle

angle

float

scale

SizeF

useRelativeTransformation

bool

PaintChildren(IGraphics, Rectangle, float, SizeF, bool)

Declaration

cs-api-definition
protected virtual void PaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)

Parameters

graphics

IGraphics

clipRectange

Rectangle

angle

float

scale

SizeF

useRelativeTransformation

bool

PaintElement(IGraphics, float, SizeF)

Declaration

cs-api-definition
protected virtual void PaintElement(IGraphics graphics, float angle, SizeF scale)

Parameters

graphics

IGraphics

angle

float

scale

SizeF

PaintElementSkin(IGraphics)

Provides a routine to paint element's content when system skin appearance is desired.

Declaration

cs-api-definition
protected virtual void PaintElementSkin(IGraphics graphics)

Parameters

graphics

IGraphics

PaintFocusCues(IGraphics, Rectangle)

Declaration

cs-api-definition
protected virtual void PaintFocusCues(IGraphics graphics, Rectangle clipRectange)

Parameters

graphics

IGraphics

clipRectange

Rectangle

PaintOverride(IGraphics, Rectangle, float, SizeF, bool)

Virtual layer between PaintChildren() and Paint(). Can be overridden to fully customize element hierarchy paint. Used for painting disabled items.

Declaration

cs-api-definition
protected virtual void PaintOverride(IGraphics graphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)

Parameters

graphics

IGraphics

The graphics object.

clipRectangle

Rectangle

The rectangle which has been invalidated.

angle

float

The angle (in degrees) to which the current element is rotated. This angle is a sum of all AngleTransform properties of this element's parents.

scale

SizeF

useRelativeTransformation

bool

PaintShadow(RadElement, IGraphics)

Declaration

cs-api-definition
protected virtual void PaintShadow(RadElement child, IGraphics graphics)

Parameters

child

RadElement

graphics

IGraphics

PaintShadowCore(Graphics, Rectangle, RadItem)

Declaration

cs-api-definition
protected virtual void PaintShadowCore(Graphics graphics, Rectangle bounds, RadItem child)

Parameters

graphics

Graphics

bounds

Rectangle

child

RadItem

PerformClick()

Triggers the Click event for the element.

Declaration

cs-api-definition
public virtual void PerformClick()

PerformDispose(bool)

Performs the core resources release logic.

Declaration

cs-api-definition
protected override void PerformDispose(bool disposing)

Parameters

disposing

bool

Overrides DisposableObject.PerformDispose(bool)

PerformLayoutTransformation(ref RadMatrix)

Declaration

cs-api-definition
protected virtual bool PerformLayoutTransformation(ref RadMatrix matrix)

Parameters

matrix

RadMatrix

Returns

bool

PerformPaintTransformation(ref RadMatrix)

Declaration

cs-api-definition
protected virtual bool PerformPaintTransformation(ref RadMatrix matrix)

Parameters

matrix

RadMatrix

Returns

bool

PointFromControl(Point)

Retrieves a point in control coordinates taking as a parameter a point which is in element coordinates. The method takes into consideration the AngleTransform property applied on the element and rotates back the transformation. This means that the top left corner of the element is with coordinates (0, 0) no matter what is AngleTransform value.

Declaration

cs-api-definition
public Point PointFromControl(Point point)

Parameters

point

Point

The point in control coordinates to convert.

Returns

Point

The point in element coordinates.

PointFromScreen(Point)

Retrieves a point in control coordinates taking as a parameter a point which is in screen coordinates.

Declaration

cs-api-definition
public Point PointFromScreen(Point point)

Parameters

point

Point

The point in screen coordinates to convert.

Returns

Point

The point in element coordinates.

PointToControl(Point)

Retrieves a point in control coordinates taking as a parameter a point which is in element coordinates. The method does not take into consideration the AngleTransform property applied on the element.

Declaration

cs-api-definition
public Point PointToControl(Point point)

Parameters

point

Point

The point in element coordinates to convert.

Returns

Point

The point in control coordinates.

PointToScreen(Point)

Retrieves a point in screen coordinates taking as a parameter a point which is in element coordinates (this means that the top left corner of the element is with coordinates 0, 0).

Declaration

cs-api-definition
public Point PointToScreen(Point point)

Parameters

point

Point

The point in element coordinates to convert.

Returns

Point

The point in screen coordinates.

PostPaintChildren(IGraphics, Rectangle, float, SizeF)

Declaration

cs-api-definition
protected virtual void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)

Parameters

graphics

IGraphics

clipRectange

Rectangle

angle

float

scale

SizeF

PostPaintElement(IGraphics)

Declaration

cs-api-definition
protected virtual void PostPaintElement(IGraphics graphics)

Parameters

graphics

IGraphics

PrePaintElement(IGraphics)

Declaration

cs-api-definition
protected virtual void PrePaintElement(IGraphics graphics)

Parameters

graphics

IGraphics

ProcessBehaviors(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void ProcessBehaviors(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

RaiseBubbleEvent(RadElement, RoutedEventArgs)

Raises the bubble phase of a routed event, traveling up from the target element to the root.

Declaration

cs-api-definition
public virtual void RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The element that originally raised the event.

args

RoutedEventArgs

The routed event arguments.

RaiseClick(EventArgs)

Declaration

cs-api-definition
protected virtual void RaiseClick(EventArgs e)

Parameters

e

EventArgs

RaiseDoubleClick(EventArgs)

Declaration

cs-api-definition
protected virtual void RaiseDoubleClick(EventArgs e)

Parameters

e

EventArgs

RaiseMouseWheel(MouseEventArgs)

Declaration

cs-api-definition
protected virtual void RaiseMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

RaiseRoutedEvent(RadElement, RoutedEventArgs)

Raises a routed event on the element, first tunneling down the element tree then bubbling back up.

Declaration

cs-api-definition
public virtual void RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The element that originally raised the event.

args

RoutedEventArgs

The routed event arguments.

RaiseTunnelEvent(RadElement, RoutedEventArgs)

Raises the tunnel phase of a routed event, traveling down from the root to the target element.

Declaration

cs-api-definition
public virtual void RaiseTunnelEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The element that originally raised the event.

args

RoutedEventArgs

The routed event arguments.

RectangleToScreen(Rectangle)

Retrieves a rectangle in screen coordinates taking as a parameter a rectangle which is in element coordinates (this means that the top left corner of the element is with coordinates 0, 0).

Declaration

cs-api-definition
public Rectangle RectangleToScreen(Rectangle rect)

Parameters

rect

Rectangle

The rectangle in element coordinates to convert.

Returns

Rectangle

The rectangle in screen coordinates.

RegisterRoutedEvent(string, Type)

Registers a new routed event with the specified name and owner type.

Declaration

cs-api-definition
public static RoutedEvent RegisterRoutedEvent(string eventName, Type ownerType)

Parameters

eventName

string

The name of the routed event.

ownerType

Type

The type that owns the routed event.

Returns

RoutedEvent

The registered routed event.

RemoveBehavior(PropertyChangeBehavior)

Declaration

cs-api-definition
public void RemoveBehavior(PropertyChangeBehavior behavior)

Parameters

behavior

PropertyChangeBehavior

RemoveBehaviors(PropertyChangeBehavior)

Declaration

cs-api-definition
public virtual void RemoveBehaviors(PropertyChangeBehavior behavior)

Parameters

behavior

PropertyChangeBehavior

RemoveRangeBehaviors(PropertyChangeBehaviorCollection)

Declaration

cs-api-definition
public virtual void RemoveRangeBehaviors(PropertyChangeBehaviorCollection propertyChangeBehaviorCollection)

Parameters

propertyChangeBehaviorCollection

PropertyChangeBehaviorCollection

RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)

Declaration

cs-api-definition
public virtual void RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection routedEventBehaviorCollection)

Parameters

routedEventBehaviorCollection

RoutedEventBehaviorCollection

ReplaceDefaultDescriptors(PropertyDescriptorCollection)

Add the ElementTree property if we are in the context of RadControlSpy.

Declaration

cs-api-definition
protected override PropertyDescriptorCollection ReplaceDefaultDescriptors(PropertyDescriptorCollection props)

Parameters

props

PropertyDescriptorCollection

Returns

PropertyDescriptorCollection

Overrides RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)

ResetLayout(bool)

Resets all layout related fields and puts the element in its initial layout state.

Declaration

cs-api-definition
public void ResetLayout(bool recursive)

Parameters

recursive

bool

True to reset children recursively, false otherwise.

ResetLayoutCore()

Resets the core layout properties and removes this element from layout queues.

Declaration

cs-api-definition
protected virtual void ResetLayoutCore()

ResetStyleSettings(bool)

Resets the Style modifier of each registered property.

Declaration

cs-api-definition
public void ResetStyleSettings(bool recursive)

Parameters

recursive

bool

ResetStyleSettings(bool, RadProperty)

Resets the Style modifier for the specified property. Will reset all properties if null is passed.

Declaration

cs-api-definition
public virtual void ResetStyleSettings(bool recursive, RadProperty property)

Parameters

recursive

bool

property

RadProperty

ResumeLayout(bool)

Resumes layout logic for the element with an option to force immediate layout.

Declaration

cs-api-definition
public void ResumeLayout(bool performLayout)

Parameters

performLayout

bool

True to execute pending layout requests immediately; false to simply resume layout operations.

Remarks

This overload calls ResumeLayout(false, performLayout), resuming layout for this element only. Use this method after calling SuspendLayout to re-enable layout calculations.

ResumeLayout(bool, bool)

Resumes layout logic for the element and optionally for its children, with an option to force immediate layout.

Declaration

cs-api-definition
public virtual void ResumeLayout(bool recursive, bool performLayout)

Parameters

recursive

bool

True to resume layout for this element and all its children; false for this element only.

performLayout

bool

True to execute pending layout requests immediately; false to simply resume layout operations.

Remarks

Layout operations are reference-counted, so each call to SuspendLayout must be matched with a corresponding call to ResumeLayout. When the suspend count reaches zero and the element is loaded, pending layout operations will be executed if performLayout is true. This method is essential for maintaining element tree layout consistency.

ResumeReferenceUpdate()

Resumes the previously suspended UpdateReferences(ComponentThemableElementTree, bool, bool) method execution. Each call to SuspendReferenceUpdate() must be paired with a corresponding call to this method.

Declaration

cs-api-definition
public void ResumeReferenceUpdate()

SendToBack()

Sends this element to the beginning of its parent's z-ordered collection.

Declaration

cs-api-definition
public void SendToBack()

SetBounds(Rectangle)

Sets the bounds of the element to the specified rectangle (locating and size).

Declaration

cs-api-definition
public void SetBounds(Rectangle bounds)

Parameters

bounds

Rectangle

The rectangle that represents the new location and size.

SetBounds(int, int, int, int)

Sets the bounds of the element to the specified rectangle (X, Y, width and height).

Declaration

cs-api-definition
public void SetBounds(int x, int y, int width, int height)

Parameters

x

int

The new X coordinate for the upper-left corner of the element.

y

int

The new Y coordinate for the upper-left corner of the element.

width

int

The new width of the element.

height

int

The new height of the element.

SetBoundsCore(Rectangle)

Sets the bounds of the element to the specified rectangle.

Declaration

cs-api-definition
protected virtual void SetBoundsCore(Rectangle bounds)

Parameters

bounds

Rectangle

The rectangle to set as bounds.

SetClipping(Graphics)

Declaration

cs-api-definition
protected virtual void SetClipping(Graphics rawGraphics)

Parameters

rawGraphics

Graphics

SetFocusPropertySafe(bool)

Sets the focused state of an element safely without recursion.

Declaration

cs-api-definition
protected void SetFocusPropertySafe(bool isFocused)

Parameters

isFocused

bool

The new focused state.

SetParent(RadElement)

Applies the specified RadElement instance as parent of the current instance.

Declaration

cs-api-definition
protected void SetParent(RadElement parent)

Parameters

parent

RadElement

The parent element to set.

SetThemeApplied(bool)

Used internally to support RadControl infrastructure. This method is not intended for use directly from your code.

Declaration

cs-api-definition
protected void SetThemeApplied(bool newValue)

Parameters

newValue

bool

SetValueCore(RadPropertyValue, object, object, ValueSource)

Performs the core logic of updating property value.

Declaration

cs-api-definition
protected override ValueUpdateResult SetValueCore(RadPropertyValue propVal, object propModifier, object newValue, ValueSource source)

Parameters

propVal

RadPropertyValue

The property value structure, holding property information.

propModifier

object

Additional modifier, like IPropertySetting

newValue

object

The actual new value to be set, valid for Local and DefaultValue sources.

source

ValueSource

Specifies the source of the provided new value.

Returns

ValueUpdateResult

The result of the operation.

Overrides RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)

ShouldArrangeChild(RadElement)

Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).

Declaration

cs-api-definition
protected virtual bool ShouldArrangeChild(RadElement child)

Parameters

child

RadElement

The child element to check.

Returns

bool

Whether the child will be arranged in ArrangeOverride.

ShouldMeasureChild(RadElement)

Gets a value indicating, whether a child will be measured during the MeasureOverride.

Declaration

cs-api-definition
protected virtual bool ShouldMeasureChild(RadElement child)

Parameters

child

RadElement

The child.

Returns

bool

Whether the child will be measured in MeasureOverride.

ShouldPaintChild(RadElement)

Declaration

cs-api-definition
protected virtual bool ShouldPaintChild(RadElement element)

Parameters

element

RadElement

Returns

bool

ShouldPaintSystemSkin()

Determines whether we should paint system skin.

Declaration

cs-api-definition
protected virtual bool ShouldPaintSystemSkin()

Returns

bool

ShowScreenTip(ScreenTipNeededEventArgs)

Shows a screen tip for this element.

Declaration

cs-api-definition
protected virtual void ShowScreenTip(ScreenTipNeededEventArgs args)

Parameters

args

ScreenTipNeededEventArgs

The screen tip event arguments.

SuspendLayout()

Temporarily suspends layout operations upon this element.

Declaration

cs-api-definition
public void SuspendLayout()

SuspendLayout(bool)

Temporarily suspends layout operations upon this element.

Declaration

cs-api-definition
public virtual void SuspendLayout(bool recursive)

Parameters

recursive

bool

True to suspend children also, false otherwise.

SuspendReferenceUpdate()

Temporarily suspends the UpdateReferences(ComponentThemableElementTree, bool, bool) method execution. This is useful when modifying the element tree structure without triggering immediate reference updates.

Declaration

cs-api-definition
public void SuspendReferenceUpdate()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()

UnapplyStyle()

Declaration

cs-api-definition
protected virtual void UnapplyStyle()

UnitializeSystemSkinPaint()

Performs cleanup when system skin painting is no longer used.

Declaration

cs-api-definition
protected virtual void UnitializeSystemSkinPaint()

UnloadCore(ComponentThemableElementTree)

Executes the core unload logic. Allows inheritors to perform additional action while the element is unloading itself.

Declaration

cs-api-definition
protected virtual void UnloadCore(ComponentThemableElementTree oldTree)

Parameters

oldTree

ComponentThemableElementTree

Reference to the element tree from which we are in a process of unload.

UnlockBounds()

Unlocks the bounds of the element after critical operations are complete.

Declaration

cs-api-definition
protected virtual void UnlockBounds()

UpdateContainsFocus(bool)

Updates the ContainsFocus property. The notification may be received from a child whose IsFocused property has changed.

Declaration

cs-api-definition
protected virtual void UpdateContainsFocus(bool isFocused)

Parameters

isFocused

bool

The current focused state.

UpdateLayout()

Forces the element to update its layout by processing any pending measure and arrange operations.

Declaration

cs-api-definition
public void UpdateLayout()

UpdateReferences(ComponentThemableElementTree, bool, bool)

Updates the local references using the provided element tree.

Declaration

cs-api-definition
protected virtual void UpdateReferences(ComponentThemableElementTree tree, bool updateInheritance, bool recursive)

Parameters

tree

ComponentThemableElementTree

The element tree to use for updating references.

updateInheritance

bool

True to update inheritance chain, false otherwise.

recursive

bool

True to update children also, false otherwise.

Events

ChildrenChanged

Occurs when the children collection of the element is changed.

Declaration

cs-api-definition
[Browsable(true)]
public event ChildrenChangedEventHandler ChildrenChanged

Event Value

ChildrenChangedEventHandler

Click

Occurs when the element is clicked.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler Click

Event Value

EventHandler

DoubleClick

Occurs when the element is double-clicked.

Declaration

cs-api-definition
[Browsable(true)]
public virtual event EventHandler DoubleClick

Event Value

EventHandler

EnabledChanged

Occurs when the enabled state of the element has changed.

Declaration

cs-api-definition
public event EventHandler EnabledChanged

Event Value

EventHandler

LayoutUpdated

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler LayoutUpdated

Event Value

EventHandler

LostMouseCapture

Declaration

cs-api-definition
public event MouseEventHandler LostMouseCapture

Event Value

MouseEventHandler

MouseDown

Occurs when the mouse pointer is over the element and a mouse button is pressed.

Declaration

cs-api-definition
[Browsable(true)]
public event MouseEventHandler MouseDown

Event Value

MouseEventHandler

MouseEnter

Occurs when the mouse pointer enters the element.

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler MouseEnter

Event Value

EventHandler

MouseHover

Occurs when the mouse pointer rests on the element.

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler MouseHover

Event Value

EventHandler

MouseLeave

Occurs when the mouse pointer leaves the element.

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler MouseLeave

Event Value

EventHandler

MouseMove

Occurs when the mouse pointer is moved over the element.

Declaration

cs-api-definition
[Browsable(false)]
public event MouseEventHandler MouseMove

Event Value

MouseEventHandler

MouseUp

Occurs when the mouse pointer is over the element and a mouse button is released.

Declaration

cs-api-definition
[Browsable(false)]
public event MouseEventHandler MouseUp

Event Value

MouseEventHandler

MouseWheel

Occurs when the RadItem has focus and the user scrolls up or down the mouse wheel

Declaration

cs-api-definition
[Browsable(true)]
public event MouseEventHandler MouseWheel

Event Value

MouseEventHandler

In this article
DefinitionConstructorsRadElement()FieldsAlignmentPropertyAngleTransformPropertyAutoSizeModePropertyAutoSizePropertyBackgroundShapePaintModePropertyBackgroundShapePropertyBorderThicknessPropertyBoundsChangedEventBoundsPropertyCanFocusPropertyChildElementAddedEventClassPropertyClickModePropertyClipDrawingPropertyContainsFocusPropertyContainsMousePropertyControlChangedEventEnabledChangedEventEnabledPropertyFitToSizeModePropertyGetPropertyValueCommandIsFocusedPropertyIsItemFocusedPropertyIsMouseDownPropertyIsMouseOverElementPropertyIsMouseOverPropertyMarginPropertyMaxSizePropertyMinSizePropertyMouseClickedEventMouseDoubleClickedEventMouseDownEventMouseUpEventMouseWheelEventNamePropertyPaddingPropertyParentChangedEventPositionOffsetPropertyRightToLeftPropertyScaleTransformPropertySetPropertyValueCommandShapePropertyShouldPaintPropertyStretchHorizontallyPropertyStretchVerticallyPropertyStylePropertyTagPropertyUseCompatibleTextRenderingPropertyVisibilityChangingEventVisibilityPropertyZIndexPropertypaintSystemSkinstyleVersionPropertiesAlignmentAngleTransformAutoNumberKeyTipAutoSizeAutoSizeModeAutoToolTipBackgroundShapeBackgroundShapePaintModeBorderThicknessBoundingRectangleBoundsBypassLayoutPoliciesCanFocusCanHaveOwnStyleCaptureCaptureOnMouseDownChildrenChildrenHierarchyClassClickModeClipDrawingContainsFocusContainsMouseControlBoundingRectangleDesiredSizeDoubleClickEnabledDpiScaleFactorElementStateElementTreeEnabledFitToSizeModeInvalidateChildrenOnChildChangedIsAbleToRespondToMouseEventsIsArrangeValidIsElementVisibleIsFocusedIsItemHoveredIsLayoutSuspendedIsMeasureValidIsMouseDownIsMouseOverIsMouseOverElementIsThemeAppliedLayoutableChildrenCountLocationMarginMaxSizeMinSizeNameNotifyParentOnMouseInputPaddingParentPositionOffsetPropagateStyleToChildrenRenderingMaxFramerateRightToLeftRoutedEventBehaviorsScaleTransformScreenTipSerializeChildrenSerializeElementSerializePropertiesShapeShouldApplyThemeShouldHandleMouseInputShouldPaintShouldPaintUsingParentShapeSizeStretchHorizontallyStretchVerticallyStyleTagThemeEffectiveTypeToolTipTextTotalTransformTransformTreeLevelUseCenteredAngleTransformUseCompatibleTextRenderingUseSystemSkinVisibilityZIndexMethodsAddBehavior(PropertyChangeBehavior)AddRangeBehavior(PropertyChangeBehaviorCollection)AddStylePropertySetting(IPropertySetting)Arrange(RectangleF)ArrangeCore(RectangleF)ArrangeOverride(SizeF)BringToFront()CalcLayoutOffset(PointF)CallCreateChildElements()CanExecuteLayoutOperation()CanRaisePropertyChangeNotifications(RadPropertyValue)ClearBehaviors()ComposeShouldPaintSystemSkin()CreateChildElements()DisposeChildren()DisposeManagedResources()DoClick(EventArgs)DoDoubleClick(EventArgs)DoMouseDown(MouseEventArgs)DoMouseEnter(EventArgs)DoMouseHover(EventArgs)DoMouseLeave(EventArgs)DoMouseMove(MouseEventArgs)DoMouseUp(MouseEventArgs)DoMouseWheel(MouseEventArgs)DpiScaleChanged(SizeF)EnumDescendants(Filter, TreeTraversalMode)EnumDescendants(Predicate<RadElement>, TreeTraversalMode)EnumDescendants(TreeTraversalMode)FindAncestor<T>()FindAncestorByThemeEffectiveType(Type)FindDescendant(Predicate<RadElement>)FindDescendant(Type)FindDescendant<T>()Focus()Focus(bool)GetAncestors(Filter)GetAncestors(Predicate<RadElement>)GetArrangeRect(RectangleF)GetAsBitmap(Brush, float, SizeF)GetAsBitmap(IGraphics, Brush, float, SizeF)GetAsBitmapEx(Brush, float, SizeF)GetAsBitmapEx(Color, float, SizeF)GetAsTransformedBitmap(Brush, float, SizeF)GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)GetBehaviors()GetBorderThickness(BorderPrimitive)GetBoundingRectangle(Rectangle)GetBoundingRectangle(Size)GetChildren(ChildrenListOptions)GetChildrenByBaseType(Type)GetChildrenByType(Type)GetClientRectangle(SizeF)GetClipRect()GetCurrentShape()GetDescendants(Filter, TreeTraversalMode)GetDescendants(Predicate<RadElement>, TreeTraversalMode)GetDesiredSize(bool)GetFocusRect()GetInvalidateBounds()GetPaintRectangle(float, float, SizeF)GetPatchedRect(RectangleF, float, SizeF)GetRegisterRoutedEvent(string)GetRegisterRoutedEvent(string, Type)GetRegisterRoutedEvent(string, string)GetShadowRect(ref Rectangle, int)GetStylableChildren()GetStylableChildrenHierarchy()GetStylablePropertiesFilter()GetSystemSkinPaintBounds()GetThemeEffectiveType()GetValue(RadProperty)GetVistaVisualStyle()GetXPVisualStyle()HasInvisibleAncestor()HideScreenTip()HitTest(Point)InitializeFields()InitializeSystemSkinPaint()Invalidate()Invalidate(bool)InvalidateArrange()InvalidateArrange(bool)InvalidateMeasure()InvalidateMeasure(bool)IsAncestorOf(RadElement)IsChildOf(RadElement)IsEventInProcess(RaisedRoutedEvent)IsInGetAsBitmap()IsInValidState(bool)IsInVisibleClipBounds(Rectangle)IsInputKey(InputKeyEventArgs)IsPropertyCancelable(RadPropertyMetadata)KillFocus()LoadCore()LocationToControl()LockBounds()Measure(SizeF)MeasureChildren(SizeF)MeasureCore(SizeF)MeasureOverride(SizeF)MouseEventArgsFromControl(MouseEventArgs)NotifyChildren(RadPropertyChangedEventArgs)NotifyInvalidate(RadElement)OnBeginDispose()OnBoundsChanged(RadPropertyChangedEventArgs)OnBubbleEvent(RadElement, RoutedEventArgs)OnCLREventsRise(RoutedEventArgs)OnChildDesiredSizeChanged(RadElement)OnChildrenChanged(RadElement, ItemsChangeOperation)OnClick(EventArgs)OnDisplayPropertyChanged(RadPropertyChangedEventArgs)OnDoubleClick(EventArgs)OnElementTreeChanged(ComponentThemableElementTree)OnEnabledChanged(RadPropertyChangedEventArgs)OnLayoutPropertyChanged(RadPropertyChangedEventArgs)OnLoad(bool)OnLoaded()OnLocationChanged(RadPropertyChangedEventArgs)OnLostMouseCapture(MouseEventArgs)OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseHover(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnParentChanged(RadElement)OnParentEnabledChanged(RadPropertyChangedEventArgs)OnParentPropertyChanged(RadPropertyChangedEventArgs)OnPropertyChanged(RadPropertyChangedEventArgs)OnRenderSizeChanged(SizeChangedInfo)OnShowScreenTip(ComponentInputBehavior)OnStyleChanged(RadPropertyChangedEventArgs)OnTransformationInvalidated()OnTunnelEvent(RadElement, RoutedEventArgs)OnUnload(ComponentThemableElementTree, bool)OnUnloaded(ComponentThemableElementTree)OnUseSystemSkinChanged(EventArgs)PaintBackgroundShape(IGraphics)PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)PaintChildren(IGraphics, Rectangle, float, SizeF, bool)PaintElement(IGraphics, float, SizeF)PaintElementSkin(IGraphics)PaintFocusCues(IGraphics, Rectangle)PaintOverride(IGraphics, Rectangle, float, SizeF, bool)PaintShadow(RadElement, IGraphics)PaintShadowCore(Graphics, Rectangle, RadItem)PerformClick()PerformDispose(bool)PerformLayoutTransformation(ref RadMatrix)PerformPaintTransformation(ref RadMatrix)PointFromControl(Point)PointFromScreen(Point)PointToControl(Point)PointToScreen(Point)PostPaintChildren(IGraphics, Rectangle, float, SizeF)PostPaintElement(IGraphics)PrePaintElement(IGraphics)ProcessBehaviors(RadPropertyChangedEventArgs)RaiseBubbleEvent(RadElement, RoutedEventArgs)RaiseClick(EventArgs)RaiseDoubleClick(EventArgs)RaiseMouseWheel(MouseEventArgs)RaiseRoutedEvent(RadElement, RoutedEventArgs)RaiseTunnelEvent(RadElement, RoutedEventArgs)RectangleToScreen(Rectangle)RegisterRoutedEvent(string, Type)RemoveBehavior(PropertyChangeBehavior)RemoveBehaviors(PropertyChangeBehavior)RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)ReplaceDefaultDescriptors(PropertyDescriptorCollection)ResetLayout(bool)ResetLayoutCore()ResetStyleSettings(bool)ResetStyleSettings(bool, RadProperty)ResumeLayout(bool)ResumeLayout(bool, bool)ResumeReferenceUpdate()SendToBack()SetBounds(Rectangle)SetBounds(int, int, int, int)SetBoundsCore(Rectangle)SetClipping(Graphics)SetFocusPropertySafe(bool)SetParent(RadElement)SetThemeApplied(bool)SetValueCore(RadPropertyValue, object, object, ValueSource)ShouldArrangeChild(RadElement)ShouldMeasureChild(RadElement)ShouldPaintChild(RadElement)ShouldPaintSystemSkin()ShowScreenTip(ScreenTipNeededEventArgs)SuspendLayout()SuspendLayout(bool)SuspendReferenceUpdate()ToString()UnapplyStyle()UnitializeSystemSkinPaint()UnloadCore(ComponentThemableElementTree)UnlockBounds()UpdateContainsFocus(bool)UpdateLayout()UpdateReferences(ComponentThemableElementTree, bool, bool)EventsChildrenChangedClickDoubleClickEnabledChangedLayoutUpdatedLostMouseCaptureMouseDownMouseEnterMouseHoverMouseLeaveMouseMoveMouseUpMouseWheel
Not finding the help you need?
Contact Support