New to Telerik UI for WinFormsStart a free 30-day trial

RadItem

Class

Represents an interactive element within the Telerik Presentation Framework that can respond to user input, participate in collections, and provide advanced UI behaviors such as selection, focus, and accessibility.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
[DefaultBindingProperty("Text")]
[ComVisible(true)]
public class RadItem : RadComponentElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItem...

Derived Classes: CollapsibleElementRadHostItemRadScreenTipElementRootRadElementUIElementBaseTimeSpanPickerComponentCarouselItemsContainerCollapsiblePanelLayoutElementContextualTabGroupDataFilterCheckboxEditorElementDataFilterDescriptorItemDockingGuideImageElementDockingGuidesElementToolWindowCaptionElementGridLinkItemGroupBoxVisualElementRadCarouselElementRadCheckBoxEditorElementRadDropDownButtonElementRadEditorElementRadFormElementRadFormMdiControlStripItemRadGalleryElementRadGalleryGroupFilterRadGalleryGroupItemRadGalleryPopupElementRadImageItemRadItemsContainerRadLabelElementRadLineItemRadMenuElementRadPanelElementRadRotatorElementRadRotatorItemRadScrollBarElementRadScrollViewerRadScrollablePanelElementRadSpinArrowElementRadSpinControlButtonsElementRadStatusBarElementRadStatusBarPanelElementRadTitleBarElementRadTrackBarItemRadWebBrowserElementRatingVisualItemRibbonBarGroupSeparatorSchedulerRangeBaseScrollBarThumbSizeGripElementSizeGripItemSnapshotDragItemSplitContainerElementSplitPanelElementSplitterElementTrackBarThumbUIItemBase...

Implements: IBindableComponentIComponentICustomTypeDescriptorIDisposableINotifyPropertyChangedIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkin...

Inherited Members RadComponentElement.ToString()RadComponentElement.GetService(Type)RadComponentElement.CanRaiseEventsRadComponentElement.ContainerRadComponentElement.DesignModeRadComponentElement.SiteRadComponentElement.DataBindingsVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.PaintElement(IGraphics, float, SizeF)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.CreateChildElements()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnLoaded()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldArrangeChild(RadElement)RadElement.ArrangeOverride(SizeF)RadElement.MeasureOverride(SizeF)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.GetClipRect()RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.OnDoubleClick(EventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.DoMouseMove(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnBoundsChanged(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetClientRectangle(SizeF)RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.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.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

Initializes a new instance of the RadItem class.

C#
public RadItem()

Fields

C#
public static readonly ClickCommand ActionCommand
C#
public static RadProperty BorderHighlightColorProperty
C#
public static RadProperty BorderHighlightThicknessProperty
C#
public static RadProperty EnableBorderHighlightProperty
C#
public static RadProperty EnableElementShadowProperty
C#
public static RadProperty EnableFocusBorderAnimationProperty
C#
public static RadProperty EnableFocusBorderProperty
C#
public static RadProperty EnableHighlightProperty
C#
public static RadProperty EnableRippleAnimationProperty
C#
public static RadProperty FlipTextProperty
C#
public static RadProperty FocusBorderColorProperty
C#
public static RadProperty FocusBorderWidthProperty
C#
public static readonly FocusCommand FocusCommand
C#
public static RadProperty HighlightColorProperty
C#
public static RadProperty IsAddNewItemProperty
C#
protected bool IsPaintingRipple
C#
public static RoutedEvent KeyDownEvent
C#
public static RoutedEvent KeyPressEvent
C#
public static RoutedEvent KeyUpEvent
C#
public static RadProperty RippleAnimationColorProperty
C#
public static RadProperty ShadowColorProperty
C#
public static RadProperty ShadowDepthProperty
C#
public static RadProperty TextOrientationProperty
C#
public static RadProperty TextProperty
C#
public static RadProperty ToolTipTextProperty
C#
public static RadProperty UseDefaultDisabledPaintProperty
C#
public static RadProperty VisualStateProperty

Properties

Gets or sets the description that will be reported to accessibility client applications.

C#
public virtual string AccessibleDescription { get; set; }

Gets or sets the name of the control for use by accessibility client applications.

C#
public virtual string AccessibleName { get; set; }

Gets or sets the accessible role of the item, which specifies the type of user interface element of the item.

C#
public virtual AccessibleRole AccessibleRole { get; set; }

Determines whether the element may be dragged by a RadDragDropService instance.

C#
[Browsable(false)]
public bool AllowDrag { get; set; }

Implements: ISupportDrag.AllowDrag

Determines whether the element may accept a drop operation.

C#
[Browsable(false)]
public bool AllowDrop { get; set; }

Implements: ISupportDrop.AllowDrop

C#
public Color BorderHighlightColor { get; set; }
C#
public int BorderHighlightThickness { get; set; }

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

C#
public override bool CanHaveOwnStyle { get; }

Overrides: RadElement.CanHaveOwnStyle

Gets the default value for the AutoToolTip property.

C#
protected virtual bool DefaultAutoToolTip { get; }
Property Value:

The default auto tooltip behavior for this item type.

C#
public bool EnableBorderHighlight { get; set; }
C#
public bool EnableElementShadow { get; set; }
C#
public bool EnableFocusBorder { get; set; }
C#
public bool EnableFocusBorderAnimation { get; set; }
C#
public bool EnableHighlight { get; set; }
C#
public bool EnableRippleAnimation { get; set; }

Specifies the text associated with this item will be flipped.

C#
[Browsable(true)]
public virtual bool FlipText { get; set; }
C#
public Color FocusBorderColor { get; set; }
C#
public int FocusBorderWidth { get; set; }
C#
public Color HighlightColor { get; set; }

Gets or sets the key tip text for this item used for keyboard navigation.

C#
public virtual string KeyTip { get; set; }
C#
protected virtual string MnemonicText { get; }

Gets the parent RadItem of this item, if any.

C#
protected RadItem ParentItem { get; }
C#
public Color RippleAnimationColor { get; set; }

Gets or sets a value indicating whether the item can be selected.

C#
[Browsable(false)]
public virtual bool Selectable { get; }
C#
public Color ShadowColor { get; set; }
C#
public int ShadowDepth { get; set; }

Gets the collection of all RadShortcut instances registered with this item.

C#
[Browsable(false)]
public RadShortcutCollection Shortcuts { get; }

Implements: IShortcutProvider.Shortcuts

Gets the shortcuts handler for managing keyboard shortcuts.

C#
protected virtual IComponentTreeHandler ShortcutsHandler { get; }

Gets or sets a value indicating whether the item should handle mouse input events.

C#
public override bool ShouldHandleMouseInput { get; set; }

Overrides: RadElement.ShouldHandleMouseInput

StateManager

ItemStateManagerBase

C#
public virtual ItemStateManagerBase StateManager { get; set; }

Implements: IStylableElement.StateManager

Gets or sets the text displayed by this item.

C#
[Bindable(true)]
[SettingsBindable(true)]
public virtual string Text { get; set; }
Property Value:

The text content of the item. The default value is an empty string.

Remarks:

This property supports data binding and localization. The text can contain HTML markup when the HTML support is enabled for the containing control. Changes to this property will trigger layout updates and repainting of the item.

Specifies the orientation of the text associated with this item. Whether it should appear horizontal or vertical.

C#
[Browsable(true)]
public virtual Orientation TextOrientation { get; set; }
C#
[Browsable(false)]
public string ThemeRole { get; set; }
C#
public override string ToolTipText { get; set; }

Overrides: RadElement.ToolTipText

Gets or sets whether the item should use the default way for painting the item when disabled (making it gray) or whether the disabled appearance should be controlled by the theme.

C#
[Browsable(true)]
public bool UseDefaultDisabledPaint { get; set; }

Gets or sets string representing the current visual state of the Item which is used by themes to determine the appearance of the item and its child elements

C#
[Browsable(true)]
public string VisualState { get; set; }

Methods

Calls the OnGesture(GestureEventArgs) method for handling gesture input.

C#
protected void CallOnGesture(GestureEventArgs args)
Parameters:argsGestureEventArgs

The gesture event arguments.

Determines whether the element may be dragged.

C#
protected virtual bool CanDragCore(Point dragStartPoint)
Parameters:dragStartPointPointReturns:

bool

C#
protected virtual bool CanHandleShortcut(ShortcutEventArgs e)
Parameters:eShortcutEventArgsReturns:

bool

Determines if the item displays any text.

C#
protected virtual bool ContainsText()
Returns:

bool

True if the item contains text; otherwise, false.

Deselects this item if it is selectable.

C#
public void Deselect()

Releases managed resources used by this element.

C#
protected override void DisposeManagedResources()

Overrides: RadComponentElement.DisposeManagedResources()

Handles the KeyDown event for this item.

C#
protected virtual void DoKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Handles the KeyPress event for this item.

C#
protected virtual void DoKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The key press event arguments.

Handles the KeyUp event for this item.

C#
protected virtual void DoKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Gets the available visual states for this item. Visual states can be combined using "." (dot).

C#
public List<string> GetAvailableVisualStates()
Returns:

List<string>

A list with the available visual states for this element.

Gets the context, associated with a drag operation.

C#
protected virtual object GetDragContextCore()
Returns:

object

The drag context object.

Gets the image to be used as a hint when this element is being dragged.

C#
protected virtual Image GetDragHintCore()
Returns:

Image

An image representing the drag hint for this element.

Initializes the fields of this instance with their default values.

C#
protected override void InitializeFields()

Overrides: RadElement.InitializeFields()

C#
protected virtual bool IsOnActiveForm(Control focusedControl, bool checkLoaded)
Parameters:focusedControlControlcheckLoadedboolReturns:

bool

Called when the item is deselected. Notifies the parent control to clear the selected item.

C#
protected virtual void OnDeselect()

Called when the Enabled property changes, applying special handling for disabled state.

C#
protected override void OnEnabledChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The property changed event arguments.

Overrides: RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)

Raises the FlipTextChanged event.

C#
protected virtual void OnFlipTextChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Calls the appropriate gesture event according to the GestureType property of the event arguments.

C#
protected virtual void OnGesture(GestureEventArgs args)
Parameters:argsGestureEventArgs

The event arguments.

Raises the KeyDown event.

C#
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Raises the KeyPress event.

C#
protected virtual void OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The key press event arguments.

Raises the KeyUp event.

C#
protected virtual void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Called when a mouse button is pressed down over the item.

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadElement.OnMouseDown(MouseEventArgs)

C#
protected override void OnMouseLeave(EventArgs e)
Parameters:eEventArgs

Overrides: RadElement.OnMouseLeave(EventArgs)

Called when the mouse moves over the item, handling highlight and border highlight effects.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadElement.OnMouseMove(MouseEventArgs)

Called when a mouse button is released over the item.

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadElement.OnMouseUp(MouseEventArgs)

Fires the PanGesture event.

C#
protected virtual void OnPanGesture(PanGestureEventArgs args)
Parameters:argsPanGestureEventArgs

The arguments for the PanGesture event.

Fires the PressAndTapGesture event.

C#
protected virtual void OnPressAndTapGesture(PressAndTapGestureEventArgs args)
Parameters:argsPressAndTapGestureEventArgs

The arguments for the PressAndTapGesture event.

Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.

C#
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The property changed event arguments.

Overrides: RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs)

Called before a property value is changed, allowing for validation or cancellation of text changes.

C#
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters:argsRadPropertyChangingEventArgs

The property changing event arguments.

Overrides: VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)

Fires the RotateGesture event.

C#
protected virtual void OnRotateGesture(RotateGestureEventArgs args)
Parameters:argsRotateGestureEventArgs

The arguments for the RotateGesture event.

Called when the item is selected. Notifies the parent control to update the selected item.

C#
protected virtual void OnSelect()

Raises the TextChanged event.

C#
protected virtual void OnTextChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Raises the TextChanging event.

C#
protected virtual void OnTextChanging(TextChangingEventArgs e)
Parameters:eTextChangingEventArgs

A TextChangingEventArgs that contains the event data.

Raises the TextOrientationChanged event.

C#
protected virtual void OnTextOrientationChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Fires the TwoFingerTapGesture event.

C#
protected virtual void OnTwoFingerTapGesture(GestureEventArgs args)
Parameters:argsGestureEventArgs

The arguments for the TwoFingerTapGesture event.

Fires the ZoomGesture event.

C#
protected virtual void OnZoomGesture(ZoomGestureEventArgs args)
Parameters:argsZoomGestureEventArgs

The arguments for the ZoomGesture event.

Paints the item, handling disabled state rendering with special grayscale treatment when UseDefaultDisabledPaint is true.

C#
protected override void PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)
Parameters:screenRadGraphicsIGraphics

The graphics object to paint on.

clipRectangleRectangle

The clipping rectangle for painting.

anglefloat

The rotation angle to apply.

scaleSizeF

The scale factor to apply.

useRelativeTransformationbool

Whether to use relative transformation.

Overrides: RadElement.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)

C#
protected virtual bool ProcessCmdKey(ref Message m, Keys keyData)
Parameters:mMessagekeyDataKeysReturns:

bool

C#
protected virtual bool ProcessDialogKey(Keys keyData)
Parameters:keyDataKeysReturns:

bool

Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.

C#
protected virtual void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters:dropLocationPoint

The location where the drop occurred.

dragObjectISupportDrag

The object being dragged.

Allows the element to perform additional action upon mouse entering its bounds upon a drag-and-drop operation.

C#
protected virtual void ProcessDragEnter(Point mousePosition, ISupportDrag dragObject)
Parameters:mousePositionPoint

The current mouse position.

dragObjectISupportDrag

The object being dragged.

Allows the element to perform additional action upon mouse leaving its bounds upon a drag-and-drop operation.

C#
protected virtual void ProcessDragLeave(Point oldMousePosition, ISupportDrag dragObject)
Parameters:oldMousePositionPoint

The previous mouse position.

dragObjectISupportDrag

The object being dragged.

Determines whether the element may be treated as a drop target during drag-and-drop operation.

C#
protected virtual bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
Parameters:mousePositionPoint

The current mouse position.

dragObjectISupportDrag

The object being dragged.

Returns:

bool

True if the element can accept the drop; otherwise, false.

Raises routed events in the bubble phase, handling key events specifically.

C#
public override void RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters:senderRadElement

The element that raised the event.

argsRoutedEventArgs

The routed event arguments.

Overrides: RadElement.RaiseBubbleEvent(RadElement, RoutedEventArgs)

C#
protected virtual void RaiseKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs
C#
protected virtual void RaiseKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs
C#
protected virtual void RaiseKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

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

C#
protected override PropertyDescriptorCollection ReplaceDefaultDescriptors(PropertyDescriptorCollection props)
Parameters:propsPropertyDescriptorCollectionReturns:

PropertyDescriptorCollection

Overrides: RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)

Resets all overrides for the theme settings of a given property and a given state.

C#
public void ResetThemeValueOverride(RadProperty property, string state)
Parameters:propertyRadProperty

The property to reset overrides for.

statestring

The state to reset.

Resets all overrides for the theme settings of a given property.

C#
public void ResetThemeValueOverride(RadProperty property)
Parameters:propertyRadProperty

The property to reset overrides for.

Resets all theme override settings for this element.

C#
public void ResetThemeValueOverrides()

Selects this item if it is selectable.

C#
public bool Select()
Returns:

bool

True if the item was successfully selected; otherwise, false.

Sets the owner collection for this item.

C#
protected virtual void SetOwnerCollection(RadItemOwnerCollection ownerCollection)
Parameters:ownerCollectionRadItemOwnerCollection

The collection that owns this item.

Applies the provided value as an override of the theme setting for the specified property in the specified state.

C#
public void SetThemeValueOverride(RadProperty property, object value, string state, string childElementClass)
Parameters:propertyRadProperty

The property to override.

valueobject

The value to override the theme setting with.

statestring

The VisualState of the item for which the setting will be applied. States can be combined using "." (dot). To see a list of the available states for this element, use the GetAvailableVisualStates method.

childElementClassstring

The value of the Class property of the child element for which the override stands. (e.g. ButtonFill, ButtonBorder, etc.)

Applies the provided value as an override of the theme setting for the specified property in the specified state.

C#
public void SetThemeValueOverride(RadProperty property, object value, string state, Type childElementType)
Parameters:propertyRadProperty

The property to override.

valueobject

The value to override the theme setting with.

statestring

The VisualState of the item for which the setting will be applied. States can be combined using "." (dot). To see a list of the available states for this element, use the GetAvailableVisualStates method.

childElementTypeType

The type of the child element for which the override stands. (e.g. typeof(FillPrimitive), typeof(BorderPrimitive), etc.)

Applies the provided value as an override of the theme setting for the specified property in the specified state.

C#
public void SetThemeValueOverride(RadProperty property, object value, string state)
Parameters:propertyRadProperty

The property to override.

valueobject

The value to override the theme setting with.

statestring

The VisualState of the item for which the setting will be applied. States can be combined using "." (dot). To see a list of the available states for this element, use the GetAvailableVisualStates method.

C#
protected virtual bool ShouldFallbackToDefaultTheme()
Returns:

bool

Determines whether the property defined by the provided property descriptor should be serialized.

C#
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters:propertyPropertyDescriptorReturns:

bool?

Overrides: RadObject.ShouldSerializeProperty(PropertyDescriptor)

C#
protected virtual void StartRippleAnimation(MouseEventArgs e)
Parameters:eMouseEventArgs
C#
protected virtual void UpdateFocusBorder(bool isFocused)
Parameters:isFocusedbool
C#
protected virtual void UpdateOnShortcutsChanged()

Events

Occurs when the FlipText property value changes.

C#
public event EventHandler FlipTextChanged

Occurs when the RadItem has focus and the user presses a key down.

C#
public event KeyEventHandler KeyDown

Occurs when the RadItem has focus and the user presses a key.

C#
public event KeyPressEventHandler KeyPress

Occurs when the RadItem has focus and the user releases the pressed key up.

C#
public event KeyEventHandler KeyUp

Occurs when a pan gesture was sent by a touch input device.

C#
[Browsable(true)]
public event PanGestureEventHandler PanGesture

Occurs when a press-and-tap gesture was sent by a touch input device.

C#
[Browsable(true)]
public event PressAndTapGestureEventHandler PressAndTapGesture

Occurs when help is requested for an accessibility object.

C#
public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp

Occurs when a rotate gesture was sent by a touch input device.

C#
[Browsable(true)]
public event RotateGestureEventHandler RotateGesture

Occurs when the Text property value changes.

C#
public event EventHandler TextChanged

Occurs when the Text property value is about to be changed.

C#
public event TextChangingEventHandler TextChanging

Occurs when the TextOrientation property value changes.

C#
public event EventHandler TextOrientationChanged

Occurs when a two-finger-tap gesture was sent by a touch input device.

C#
[Browsable(true)]
public event GestureEventHandler TwoFingerTapGesture

Occurs when a zoom gesture was sent by a touch input device.

C#
[Browsable(true)]
public event ZoomGestureEventHandler ZoomGesture

Extension Methods

In this article
DefinitionConstructorsRadItem()FieldsActionCommandBorderHighlightColorPropertyBorderHighlightThicknessPropertyEnableBorderHighlightPropertyEnableElementShadowPropertyEnableFocusBorderAnimationPropertyEnableFocusBorderPropertyEnableHighlightPropertyEnableRippleAnimationPropertyFlipTextPropertyFocusBorderColorPropertyFocusBorderWidthPropertyFocusCommandHighlightColorPropertyIsAddNewItemPropertyIsPaintingRippleKeyDownEventKeyPressEventKeyUpEventRippleAnimationColorPropertyShadowColorPropertyShadowDepthPropertyTextOrientationPropertyTextPropertyToolTipTextPropertyUseDefaultDisabledPaintPropertyVisualStatePropertyPropertiesAccessibleDescriptionAccessibleNameAccessibleRoleAllowDragAllowDropBorderHighlightColorBorderHighlightThicknessCanHaveOwnStyleDefaultAutoToolTipEnableBorderHighlightEnableElementShadowEnableFocusBorderEnableFocusBorderAnimationEnableHighlightEnableRippleAnimationFlipTextFocusBorderColorFocusBorderWidthHighlightColorKeyTipMnemonicTextParentItemRippleAnimationColorSelectableShadowColorShadowDepthShortcutsShortcutsHandlerShouldHandleMouseInputStateManagerTextTextOrientationThemeRoleToolTipTextUseDefaultDisabledPaintVisualStateMethodsCallOnGesture(GestureEventArgs)CanDragCore(Point)CanHandleShortcut(ShortcutEventArgs)ContainsText()Deselect()DisposeManagedResources()DoKeyDown(KeyEventArgs)DoKeyPress(KeyPressEventArgs)DoKeyUp(KeyEventArgs)GetAvailableVisualStates()GetDragContextCore()GetDragHintCore()InitializeFields()IsOnActiveForm(Control, bool)OnDeselect()OnEnabledChanged(RadPropertyChangedEventArgs)OnFlipTextChanged(EventArgs)OnGesture(GestureEventArgs)OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnKeyUp(KeyEventArgs)OnMouseDown(MouseEventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnPanGesture(PanGestureEventArgs)OnPressAndTapGesture(PressAndTapGestureEventArgs)OnPropertyChanged(RadPropertyChangedEventArgs)OnPropertyChanging(RadPropertyChangingEventArgs)OnRotateGesture(RotateGestureEventArgs)OnSelect()OnTextChanged(EventArgs)OnTextChanging(TextChangingEventArgs)OnTextOrientationChanged(EventArgs)OnTwoFingerTapGesture(GestureEventArgs)OnZoomGesture(ZoomGestureEventArgs)PaintOverride(IGraphics, Rectangle, float, SizeF, bool)ProcessCmdKey(ref Message, Keys)ProcessDialogKey(Keys)ProcessDragDrop(Point, ISupportDrag)ProcessDragEnter(Point, ISupportDrag)ProcessDragLeave(Point, ISupportDrag)ProcessDragOver(Point, ISupportDrag)RaiseBubbleEvent(RadElement, RoutedEventArgs)RaiseKeyDown(KeyEventArgs)RaiseKeyPress(KeyPressEventArgs)RaiseKeyUp(KeyEventArgs)ReplaceDefaultDescriptors(PropertyDescriptorCollection)ResetThemeValueOverride(RadProperty, string)ResetThemeValueOverride(RadProperty)ResetThemeValueOverrides()Select()SetOwnerCollection(RadItemOwnerCollection)SetThemeValueOverride(RadProperty, object, string, string)SetThemeValueOverride(RadProperty, object, string, Type)SetThemeValueOverride(RadProperty, object, string)ShouldFallbackToDefaultTheme()ShouldSerializeProperty(PropertyDescriptor)StartRippleAnimation(MouseEventArgs)UpdateFocusBorder(bool)UpdateOnShortcutsChanged()EventsFlipTextChangedKeyDownKeyPressKeyUpPanGesturePressAndTapGestureQueryAccessibilityHelpRotateGestureTextChangedTextChangingTextOrientationChangedTwoFingerTapGestureZoomGestureExtension Methods
Not finding the help you need?
Contact Support