UIElement Members
The following tables list the members exposed by the UIElement type.
Public Constructors
Name | Description | |
---|---|---|
UIElement | Initializes a new instance of the UIElement class. |
Public Fields
Name | Description | |
---|---|---|
Dispatcher | (Inherited from DispatcherObject.) |
Protected Fields
Name | Description | |
---|---|---|
_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. | |
_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 | |
---|---|---|
ActualHeight | Gets the rendered height of this element. | |
ActualWidth | Gets the rendered width of this element. | |
Height | Gets or sets the suggested height of this element. | |
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. | |
IsArrangeValid | Gets a value indicating whether the computed size and position of child elements in this element's layout are valid. | |
IsEnabled | Gets or sets a value indicating whether this element is enabled in the user interface (UI). | |
IsFocused | Gets a value that determines whether this element has logical focus. | |
IsMeasureValid | Gets a value indicating whether the current size returned by layout measure is valid. | |
IsVisible | Gets a value indicating whether this element is visible in the user interface (UI). | |
Parent | Gets the logical parent element of this element. | |
RootUIElement | Gets the logical root element of this element. | |
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. | |
Visibility | Gets or sets the user interface (UI) visibility of this element. | |
Width | Gets or sets the suggested width of this element. |
Protected Properties
Name | Description | |
---|---|---|
InstanceEventHandlersStore | Gets the event-handler store for this element. | |
LogicalChildren | Gets an enumerator for this element's logical child elements. |
Public Methods
Name | Description | |
---|---|---|
AddHandler | Adds a routed-event handler for a specified routed event, adding the handler to the current element's event handler collection. | |
AddToEventRoute | Adds handlers to the specified event route for the current element's event handler collection. | |
Arrange | Positions child elements in a particular region on the screen. | |
CheckAccess | (Inherited from DispatcherObject.) | |
ChildElementFromPoint | Returns the most recently created child control that is located at a specified point on the display. | |
ContainsPoint | Determines whether a specified point is contained by this UIElement. | |
Equals | (Inherited from Object.) | |
GetDesiredSize | Gets the current element's size, as computed during the measure pass of the layout process. | |
GetHashCode | (Inherited from Object.) | |
GetLayoutOffset | Gets the current element's offset, relative to the upper-left corner of the screen. | |
GetMargin | Gets the width of the current element's margins. | |
GetPointerTarget | Returns the visible child of this UIElement that contains a specified screen point. | |
GetRenderSize | Gets the final render size of the current element. | |
GetType | (Inherited from Object.) | |
GetUnclippedSize | Returns the unclipped size of this UIElement. | |
Invalidate | Invalidates the rendering of the current element and forces a complete new layout pass. | |
InvalidateArrange | Invalidates the arrange state of the current element's layout. | |
InvalidateMeasure | Invalidates the measurement state of the current element's layout. | |
InvalidateRect | Invalidates the specified rectangle. | |
Measure | Determines the size requirements for the layout of a child element. | |
OnRender | Participates in rendering operations that are directed by the layout system when implemented in a derived class. | |
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. | |
PointToScreen | Converts a point expressed in the coordinate space of this UIElement into screen coordinates. | |
RaiseEvent | Raises a specific routed event. | |
ReferenceEquals | (Inherited from Object.) | |
SetMargin | Overloaded. Sets the size of the current element's margin. | |
ToString | (Inherited from Object.) | |
UpdateLayout | Ensures that all visual child elements of the current element are properly updated for layout. | |
VerifyAccess | (Inherited from DispatcherObject.) |
Protected Methods
Name | Description | |
---|---|---|
ArrangeOverride | Positions child elements and determines a size for a UIElement-derived class when implemented in a derived class. | |
Finalize | (Inherited from Object.) | |
MeasureOverride | Determines the custom size requirements for the layout of a child element when implemented in a derived class. | |
MemberwiseClone | (Inherited from Object.) | |
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. | |
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. | |
OnChildDesiredSizeChanged | Supports the layout system when a child element is resized. | |
OnGenericEvent | OnGenericEvent is called when this UIElement generates a generic event. | |
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. | |
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. | |
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. | |
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. | |
OnTouchDown | Handles a touch down (or stylus down) event. | |
OnTouchGestureChanged | Handles a TouchGestureChanged event. | |
OnTouchGestureEnded | Handles a TouchGestureEnd event. | |
OnTouchGestureStarted | Handles a TouchGestureStart event. | |
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. | |
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. | |
RenderRecursive | Renders this UIElement and all its child UIElements. |
Public Events
Name | Description | |
---|---|---|
IsEnabledChanged | Occurs when the value of the IsEnabled property changes for the current element. | |
IsVisibleChanged | Occurs when the value of the IsVisible property changes for the current element. | |
TouchDown | Occurs when the user initially touches the tablet screen or puts the tip of the stylus onto the tablet screen. | |
TouchGestureChanged | Indicates that a touch or stylus gesture changed. | |
TouchGestureEnd | Indicates that a touch or stylus gesture ended. | |
TouchGestureStart | Indicates that a touch or stylus gesture started. | |
TouchMove | Occurs when the user's finger or stylus moves while it is touching the tablet. | |
TouchUp | Occurs when the user raises their finger or stylus from the touch screen. |