UIElement
Definition
Namespace:Telerik.WinControls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public abstract class UIElement : VisualElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public UIElement()
Fields
public static RadProperty ClipProperty
public static RadProperty FlowDirectionProperty
public static RadProperty TextProperty
Properties
public string AutomationID { get; set; }
public Dispatcher Dispatcher { get; }
public bool HasReceivedFocus { get; set; }
This property is used internally!
public override bool IsFocusable { get; set; }
Overrides:
public bool IsHitTestVisible { get; set; }
public RenderTransform RenderTransform { get; set; }
Methods
protected virtual bool CanPaint(IPaintingContext context)
public void CaptureMouse()
Raises the click event and invalidates the owning control when this element is loaded.
protected override void DoClick(EventArgs e)
The click event data.
Overrides:
Forwards the double-click event to OnDoubleClick(EventArgs).
protected override void DoDoubleClick(EventArgs e)
The double-click event data.
Overrides:
Called when the mouse is moved over this element.
protected override void DoMouseMove(MouseEventArgs e)
The mouse event arguments.
Overrides:
Dispatches the routed mouse-wheel event to the element's mouse-wheel handler.
protected override void DoMouseWheel(MouseEventArgs e)
The original mouse-wheel event data.
Overrides:
Gets the local rectangle used to clip this element's drawing.
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.
protected override void InitializeFields()
Overrides:
Called after the element's bounds change and the corresponding layout invalidation is processed.
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
The bounds change, including its old and new values.
Overrides:
Called when the bubble phase of a routed event occurs.
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
The element that originally raised the event.
argsRoutedEventArgsThe routed event arguments.
Overrides:
Raises the Click event.
Raises the DoubleClick event.
protected virtual void OnMouseDoubleClick(MouseButtonEventArgs e)
Captures the element when configured, attempts to focus it, raises its mouse-down event, and records click count state.
protected override void OnMouseDown(MouseEventArgs e)
The mouse-down event data.
Overrides:
protected virtual void OnMouseLeftButtonDown(MouseButtonEventArgs e)
protected virtual void OnMouseLeftButtonUp(MouseButtonEventArgs e)
protected virtual void OnMouseRightButtonDown(MouseButtonEventArgs e)
protected virtual void OnMouseRightButtonUp(MouseButtonEventArgs e)
Releases capture when configured and raises the element's mouse-up event.
protected override void OnMouseUp(MouseEventArgs e)
The mouse-up event data.
Overrides:
Called when a property value has changed, allowing for custom response to property changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property changed event arguments.
Overrides:
public void ReleaseMouseCapture()
public void UpdateRenderTransform()
Events
public event EventHandler GotFocus
public event EventHandler LostFocus
public event EventHandler<MouseButtonEventArgs> MouseClick
public event EventHandler<MouseButtonEventArgs> MouseDoubleClick
public event EventHandler<MouseButtonEventArgs> MouseLeftButtonDown
public event EventHandler<MouseButtonEventArgs> MouseLeftButtonUp
public event EventHandler<MouseButtonEventArgs> MouseRightButtonDown
public event EventHandler<MouseButtonEventArgs> MouseRightButtonUp