Click or drag to resize
UIElement Class
UIElement is a base class for most of the objects that have visual appearance and can process basic input in a user interface.
Inheritance Hierarchy

Namespace: Windows.UI.Xaml
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public abstract class UIElement : DependencyObject

The UIElement type exposes the following members.

Constructors
  NameDescription
Protected methodUIElement
Initializes a new instance of the UIElement class
Top
Methods
  NameDescription
Public methodCapturePointer
Sets pointer capture to a UIElement.
Public methodCreateDomChildWrapper
When overriden, creates a dom wrapper for each child that is added to the UIElement.
Public methodCreateDomElement
When overriden, creates the dom elements designed to represent an instance of an UIElement and defines the place where its child(ren) will be added.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetChildsWrapper
Public methodGetDomElementWhereToPlaceChild
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.)
Public methodGetVisualStateValue (Inherited from DependencyObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnGotFocus
Raises the GotFocus event
Protected methodOnKeyDown
Raises the KeyDown event
Protected methodOnKeyUp
Raises the KeyUp event
Protected methodOnLostFocus
Raises the LostFocus event
Protected methodOnPointerEntered
Raises the PointerEntered event
Protected methodOnPointerExited
Raises the PointerExited event
Protected methodOnPointerMoved
Protected methodOnPointerPressed
Raises the PointerPressed event
Protected methodOnPointerReleased
Raises the PointerReleased event
Protected methodOnTapped
Raises the Tapped event
Public methodReadLocalValue
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.)
Public methodReleasePointerCapture
Releases pointer captures for capture of one specific pointer by this UIElement.
Public methodSetBinding
Attaches a binding to a FrameworkElement, using the provided binding object.
(Inherited from DependencyObject.)
Public methodSetInheritedValue
Sets the inherited value of a dependency property on a DependencyObject. Do not use this method.
(Inherited from DependencyObject.)
Public methodSetLocalValue
Sets the local value of a dependency property on a DependencyObject while not overriding a hypothetical Binding (example: when the user writes in a TextBox with a two way Binding on its Text property).
(Inherited from DependencyObject.)
Public methodSetValue
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.)
Public methodSetVisualStateValue (Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformToVisual
Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.
Top
Fields
  NameDescription
Public fieldStatic memberEffectProperty
Public fieldStatic memberOpacityProperty
Identifies the Opacity dependency property.
Public fieldStatic memberRenderTransformOriginProperty
Public fieldStatic memberRenderTransformProperty
Identifies the RenderTransform dependency property.
Public fieldStatic memberUseLayoutRoundingProperty
Identifies the UseLayoutRounding dependency property.
Public fieldStatic memberVisibilityProperty
Identifies the Visibility dependency property.
Top
Properties
  NameDescription
Public propertyDispatcher
Gets the CoreDispatcher that this object is associated with.
(Inherited from DependencyObject.)
Public propertyEffect
Public propertyOpacity
Gets or sets the degree of the object's opacity. A value between 0 and 1.0 that declares the opacity factor, with 1.0 meaning full opacity and 0 meaning transparent. The default value is 1.0.
Public propertyRenderTransform
Gets or sets transform information that affects the rendering position of a UIElement.
Public propertyRenderTransformOrigin
Public propertyUseLayoutRounding
Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.
Public propertyVisibility
Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout.
Top
Events
  NameDescription
Public eventGotFocus
Occurs when the pointer device that previously initiated a Press action is pressed, while within this element. Note that ONLY sender's informations are currently filled (not pointer's)
Public eventKeyDown
Occurs when a keyboard key is pressed while the UIElement has focus.
Public eventKeyUp
Occurs when a keyboard key is released while the UIElement has focus.
Public eventLostFocus
Occurs when a UIElement loses focus.
Public eventPointerEntered
Occurs when a pointer enters the hit test area of this element.
Public eventPointerExited
Occurs when a pointer leaves the hit test area of this element.
Public eventPointerMoved
Occurs when the pointer device that previously initiated a Press action is moved, while within this element.
Public eventPointerPressed
Occurs when the pointer device that previously initiated a Press action is pressed, while within this element.
Public eventPointerReleased
Occurs when the pointer device that previously initiated a Press action is released, while within this element.
Public eventTapped
Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element.
Top
See Also