New to Telerik UI for WinForms? Start a free 30-day trial

Provides diagram elements with text, transforms, clipping, painting hooks, and mouse and focus events.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public abstract class UIElement : VisualElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElement...

Derived Classes: FrameworkElement

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedIStylableNodeISupportSystemSkin

Inherited Members VisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)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.InitializeFields()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.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.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)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.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.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(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.OnMouseMove(MouseEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.OnMouseLeave(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(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.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadElement.ToString()RadElement.DisposeManagedResources()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.CanHaveOwnStyleRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.ShouldHandleMouseInputRadElement.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.ToolTipTextRadElement.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

Creates an element that paints itself, does not apply a theme, and notifies its parent of mouse input.

C#
public UIElement()

Fields

Identifies the clipping geometry property, whose registered default is null.

C#
public static RadProperty ClipProperty

Reserved compatibility field; this implementation does not register it and leaves it null.

C#
public static RadProperty FlowDirectionProperty

Identifies the text property, whose registered default is an empty string.

C#
public static RadProperty TextProperty

Properties

Gets or sets an automation identifier assigned to this element by diagram infrastructure.

C#
[Browsable(false)]
public string AutomationID { get; set; }

Gets or sets the geometry used to clip this element. Setting a non-null value enables the element's clip-drawing behavior.

C#
[Browsable(false)]
public Geometry Clip { get; set; }

Gets or sets a caller-maintained marker indicating whether the element has received focus; the base class does not update it automatically.

C#
public bool HasReceivedFocus { get; set; }

This property is used internally!

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

Overrides: RadElement.IsFocusable

Gets or sets the hit-test visibility flag. The base HitTest(Point) implementation does not consult this value.

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

Gets or sets a transform. Changes are applied to the element's native scale, angle, or position settings when the transform is a matching transform type.

C#
[Browsable(false)]
public Transform RenderTransform { get; set; }

Gets or sets diagram text through the registered property system; the base element stores the text but does not draw it.

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

Methods

Determines whether this element should be painted; the base implementation checks that its visibility is Visible.

C#
protected virtual bool CanPaint(IPaintingContext context)
Parameters:contextIPaintingContext

The context that will be used for painting.

Returns:

bool

true when the element is visible.

Captures mouse input to this element by setting its capture state.

C#
public void CaptureMouse()

Clears the local value for a registered property so the element uses that property's default or inherited value.

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

The property whose local value is cleared.

Creates the child elements and initializes a transform group with the element's default transforms.

C#
protected override void CreateChildElements()

Overrides: RadElement.CreateChildElements()

Raises click notifications on this element and, while enabled and unhandled, its ancestor UI elements.

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

The click event data; mouse-button data controls handled-state propagation.

Overrides: RadElement.DoClick(EventArgs)

Raises double-click notifications on this element and, while enabled and unhandled, its ancestor UI elements.

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

The double-click event data; mouse-button data controls handled-state propagation.

Overrides: RadElement.DoDoubleClick(EventArgs)

Raises the mouse-move event when this element can respond to mouse input, then notifies eligible ancestors.

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

The mouse-move event data.

Overrides: RadElement.DoMouseMove(MouseEventArgs)

Raises the mouse-wheel event and notifies ancestor UI elements while parent notification is enabled and the event remains unhandled.

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

The mouse-wheel event data.

Overrides: RadElement.DoMouseWheel(MouseEventArgs)

Calculates the client clip rectangle after border and padding insets, intersecting it with Clip only when the clip is a RectangleGeometry.

C#
protected override RectangleF GetClipRect()
Returns:

RectangleF

The resulting client clip rectangle.

Overrides: RadElement.GetClipRect()

Tests the point against the element's shape or transformed bounds. This method does not consult IsHitTestVisible.

C#
public override bool HitTest(Point point)
Parameters:pointPoint

The point to test.

Returns:

bool

true when the point lies in the tested shape or bounds.

Overrides: RadElement.HitTest(Point)

Determines whether keyboard focus is within this element's tree.

C#
public bool IsKeyboardFocusWithin()
Returns:

bool

false when the element is not attached to an element tree; otherwise, the tree's focus service result.

Invalidates the parent's measure after the element's bounds change when automatic sizing is disabled.

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

The bounds change data.

Overrides: RadElement.OnBoundsChanged(RadPropertyChangedEventArgs)

Raises CLR mouse events for unhandled routed mouse input and cancels further routing when a handler marks it handled.

C#
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters:senderRadElement

The element that raised the routed event.

argsRoutedEventArgs

The routed event data.

Overrides: RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)

Performs base click handling and raises MouseClick when the event data contains mouse-button information.

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

The click event data.

Overrides: RadElement.OnClick(EventArgs)

Performs base double-click handling and raises MouseDoubleClick when the event data contains mouse-button information.

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

The double-click event data.

Overrides: RadElement.OnDoubleClick(EventArgs)

Raises GotFocus. Override this method to customize focus handling; call the base implementation to notify event subscribers.

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

The event data.

Raises LostFocus. Override this method to customize lost-focus handling; call the base implementation to notify event subscribers.

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

The event data.

Raises MouseClick. Override this method to customize click handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseClick(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Raises MouseDoubleClick. Override this method to customize double-click handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Dispatches left- or right-button press events and focuses the element when the input is not already handled.

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

The mouse event data.

Overrides: RadElement.OnMouseDown(MouseEventArgs)

Raises MouseLeftButtonDown. Override this method to customize press handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Raises MouseLeftButtonUp. Override this method to customize release handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Raises MouseRightButtonDown. Override this method to customize press handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseRightButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Raises MouseRightButtonUp. Override this method to customize release handling; call the base implementation to notify event subscribers.

C#
protected virtual void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The mouse-button event data.

Dispatches left- or right-button release events when the input is not already handled.

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

The mouse event data.

Overrides: RadElement.OnMouseUp(MouseEventArgs)

Raises the corresponding focus event when the element's focused state changes.

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

The changed property and its old and new values.

Overrides: VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

Paints this element only when CanPaint(IPaintingContext) returns true.

C#
public void Paint(IPaintingContext context)
Parameters:contextIPaintingContext

The context used to draw the element.

Provides the content-painting hook called after CanPaint(IPaintingContext) succeeds.

C#
protected virtual void PaintCore(IPaintingContext context)
Parameters:contextIPaintingContext

The context used to draw the element.

Releases mouse capture from this element.

C#
public void ReleaseMouseCapture()

Applies a supported ScaleTransform, RotateTransform, or TranslateTransform to the corresponding element transform settings; other transform types reset those settings.

C#
public void UpdateRenderTransform()

Events

Occurs when the element's focused state becomes true.

C#
public event EventHandler GotFocus

Occurs when the element's focused state becomes false.

C#
public event EventHandler LostFocus

Occurs when a click is processed for this element.

C#
public event EventHandler<MouseButtonEventArgs> MouseClick

Click notifications can also be sent to ancestor UIElement instances while parent notification is enabled and the event remains unhandled.

Occurs when a double-click is processed for this element.

C#
public event EventHandler<MouseButtonEventArgs> MouseDoubleClick

Double-click notifications can also be sent to ancestor UIElement instances while parent notification is enabled and the event remains unhandled.

Occurs when this element receives a left-button press. Handlers can mark the event arguments as handled to stop further routed processing.

C#
public event EventHandler<MouseButtonEventArgs> MouseLeftButtonDown

Occurs when this element receives a left-button release.

C#
public event EventHandler<MouseButtonEventArgs> MouseLeftButtonUp

Occurs when this element receives a right-button press. Handlers can mark the event arguments as handled to stop further routed processing.

C#
public event EventHandler<MouseButtonEventArgs> MouseRightButtonDown

Occurs when this element receives a right-button release.

C#
public event EventHandler<MouseButtonEventArgs> MouseRightButtonUp