Share via


UIElement Members

The following tables list the members exposed by the UIElement type.

Public Constructors

Name Description
Public Method UIElement Initializes a new instance of the UIElement class.

Public Fields

Name Description
Public Field Dispatcher (Inherited from DispatcherObject.)

Protected Fields

Name Description
Protected Field _horizontalAlignment Specifies the horizontal alignment characteristics that are applied to the current element when it is composed within a parent element, such as a Panel object.
Protected Field _verticalAlignment Specifies the vertical alignment characteristics that are applied to the current element when it is composed within a parent element, such as a Panel object.

Public Properties

Name Description
Public Property ActualHeight Gets the rendered height of this element.
Public Property ActualWidth Gets the rendered width of this element.
Public Property Height Gets or sets the suggested height of this element.
Public Property HorizontalAlignment Gets or sets the horizontal alignment characteristics that are applied to this element when it is composed within a parent element, such as a Panel.
Public Property IsArrangeValid Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.
Public Property IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface (UI).
Public Property IsFocused Gets a value that determines whether this element has logical focus.
Public Property IsMeasureValid Gets a value indicating whether the current size returned by layout measure is valid.
Public Property IsVisible Gets a value indicating whether this element is visible in the user interface (UI).
Public Property Parent Gets the logical parent element of this element.
Public Property RootUIElement Gets the logical root element of this element.
Public Property VerticalAlignment Gets or sets the vertical alignment characteristics that are applied to this element when it is composed within a parent element, such as a Panel.
Public Property Visibility Gets or sets the user interface (UI) visibility of this element.
Public Property Width Gets or sets the suggested width of this element.

Protected Properties

Name Description
Protected Property InstanceEventHandlersStore Gets the event-handler store for this element.
Protected Property LogicalChildren Gets an enumerator for this element's logical child elements.

Public Methods

Name Description
Public Method AddHandler Adds a routed-event handler for a specified routed event, adding the handler to the current element's event handler collection.
Public Method AddToEventRoute Adds handlers to the specified event route for the current element's event handler collection.
Public Method Arrange Positions child elements in a particular region on the screen.
Public Method CheckAccess (Inherited from DispatcherObject.)
Public Method ChildElementFromPoint Returns the most recently created child control that is located at a specified point on the display.
Public Method ContainsPoint Determines whether a specified point is contained by this UIElement.
Public Method Equals (Inherited from Object.)
Public Method GetDesiredSize Gets the current element's size, as computed during the measure pass of the layout process.
Public Method GetHashCode (Inherited from Object.)
Public Method GetLayoutOffset Gets the current element's offset, relative to the upper-left corner of the screen.
Public Method GetMargin Gets the width of the current element's margins.
Public Method GetPointerTarget Returns the visible child of this UIElement that contains a specified screen point.
Public Method GetRenderSize Gets the final render size of the current element.
Public Method GetType (Inherited from Object.)
Public Method GetUnclippedSize Returns the unclipped size of this UIElement.
Public Method Invalidate Invalidates the rendering of the current element and forces a complete new layout pass.
Public Method InvalidateArrange Invalidates the arrange state of the current element's layout.
Public Method InvalidateMeasure Invalidates the measurement state of the current element's layout.
Public Method InvalidateRect Invalidates the specified rectangle.
Public Method Measure Determines the size requirements for the layout of a child element.
Public Method OnRender Participates in rendering operations that are directed by the layout system when implemented in a derived class.
Public Method PointToClient Given a point within this child UIElement, PointToClient returns the client UIElement that is the top-level ancestor of this UIElement, and expresses the given point in the coordinate space of that ancestor.
Public Method PointToScreen Converts a point expressed in the coordinate space of this UIElement into screen coordinates.
Public Method RaiseEvent Raises a specific routed event.
Public Method ReferenceEquals (Inherited from Object.)
Public Method SetMargin Overloaded. Sets the size of the current element's margin.
Public Method ToString (Inherited from Object.)
Public Method UpdateLayout Ensures that all visual child elements of the current element are properly updated for layout.
Public Method VerifyAccess (Inherited from DispatcherObject.)

Protected Methods

Name Description
Protected Method ArrangeOverride Positions child elements and determines a size for a UIElement-derived class when implemented in a derived class.
Protected Method Finalize (Inherited from Object.)
Protected Method MeasureOverride Determines the custom size requirements for the layout of a child element when implemented in a derived class.
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method OnButtonDown Adds class handling for an unhandled ButtonDown attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnButtonUp Adds class handling for an unhandled ButtonUp attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnChildDesiredSizeChanged Supports the layout system when a child element is resized.
Protected Method OnGenericEvent OnGenericEvent is called when this UIElement generates a generic event.
Protected Method OnGotFocus Adds class handling for an unhandled ButtonsGotFocus attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnLostFocus Adds class handling for an unhandled ButtonsLostFocus attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnPreviewButtonDown Adds class handling for an unhandled PreviewButtonDown attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnPreviewButtonUp Adds class handling for an unhandled PreviewButtonUp attached event when that event reaches, by way of its route, an element that is derived from the UIElement class.
Protected Method OnTouchDown Handles a touch down (or stylus down) event.
Protected Method OnTouchGestureChanged Handles a TouchGestureChanged event.
Protected Method OnTouchGestureEnded Handles a TouchGestureEnd event.
Protected Method OnTouchGestureStarted Handles a TouchGestureStart event.
Protected Method OnTouchMove Invoked when an unhandled TouchMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Protected Method OnTouchUp Invoked when an unhandled TouchUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Protected Method RenderRecursive Renders this UIElement and all its child UIElements.

Public Events

Name Description
Public Event IsEnabledChanged Occurs when the value of the IsEnabled property changes for the current element.
Public Event IsVisibleChanged Occurs when the value of the IsVisible property changes for the current element.
Public Event TouchDown Occurs when the user initially touches the tablet screen or puts the tip of the stylus onto the tablet screen.
Public Event TouchGestureChanged Indicates that a touch or stylus gesture changed.
Public Event TouchGestureEnd Indicates that a touch or stylus gesture ended.
Public Event TouchGestureStart Indicates that a touch or stylus gesture started.
Public Event TouchMove Occurs when the user's finger or stylus moves while it is touching the tablet.
Public Event TouchUp Occurs when the user raises their finger or stylus from the touch screen.

See Also

Reference

UIElement Class
Microsoft.SPOT.Presentation Namespace