Click or drag to resize
UIElement Class
Base class for all UI controls. Implements layout passes and basic functionality.
Inheritance Hierarchy

Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface (in EmptyKeys.UserInterface.dll) Version: 2.5.0.0 (2.5.0.0)
Syntax
C#
public class UIElement : DependencyObject

The UIElement type exposes the following members.

Constructors
  NameDescription
Public methodUIElement
Initializes a new instance of the UIElement class.
Top
Properties
  NameDescription
Public propertyActualHeight
Gets the actual height.
Public propertyActualWidth
Gets the actual width.
Public propertyCursorType
Gets or sets the type of the cursor.
Public propertyDataContext
Gets or sets the data context.
Public propertyDependencyObjectType
Gets the type of the dependency object.
(Inherited from DependencyObject.)
Public propertyDesiredSize
Gets the size of the desired.
Public propertyDeviceRenderSize
Gets or sets the size of the device render.
Public propertyEffect
Gets or sets the effect.
Public propertyFocusable
Gets or sets a value indicating whether this UIElement is focusable.
Public propertyHeight
Gets or sets the height.
Public propertyHorizontalAlignment
Gets or sets the horizontal alignment.
Public propertyInputBindings
Gets the input bindings.
Public propertyIsArrangeValid
Gets a value indicating whether [is arrange valid].
Public propertyIsEnabled
Gets or sets a value indicating whether this instance is enabled.
Protected propertyIsEnabledCoerceValue
Gets a value indicating whether this instance is enabled coerce value.
Public propertyIsFocused
Gets or sets a value indicating whether this instance is focused.
Public propertyIsHitTestVisible
Gets or sets a value indicating whether this instance is hit test visible.
Public propertyIsKeyboardFocused
Gets a value indicating whether this instance is keyboard focused.
Public propertyIsLoaded
Gets a value indicating whether this instance is loaded.
Public propertyIsMeasureValid
Gets a value indicating whether [is measure valid].
Public propertyIsMouseCaptured
Gets a value indicating whether this instance is mouse captured.
Public propertyIsMouseOver
Gets or sets a value indicating whether this instance is mouse over.
Public propertyIsSealed
Gets a value indicating whether this instance is sealed.
(Inherited from DependencyObject.)
Public propertyIsTouchCaptured
Gets a value indicating whether this instance is touch captured.
Public propertyMargin
Gets or sets the margin.
Public propertyMaxHeight
Gets or sets the maximum height.
Public propertyMaxWidth
Gets or sets the maximum width.
Public propertyMinHeight
Gets or sets the minimum height.
Public propertyMinWidth
Gets or sets the minimum width.
Public propertyName
Gets or sets the name.
Public propertyOpacity
Gets or sets the opacity.
Public propertyParent
Gets or sets the parent.
Public propertyRenderPosition
Gets or sets the render position.
Public propertyRenderSize
Gets the size of the render.
Public propertyResources
Gets or sets the resources.
Public propertySnapsToDevicePixels
Gets or sets a value indicating whether [snaps to device pixels].
Public propertyStyle
Gets or sets the style.
Public propertyTag
Gets or sets the tag.
Public propertyTemplatedParent
Gets the templated parent.
Public propertyToolTip
Gets or sets the tool tip.
Public propertyTriggers
Gets the triggers - Trigger collection, only EventTriggers should be in this collection, others are ignored
Public propertyVerticalAlignment
Gets or sets the vertical alignment.
Public propertyVisibility
Gets or sets the visibility.
Public propertyVisualOffset
Gets or sets the visual offset.
Public propertyVisualPosition
Gets or sets the position.
Public propertyWidth
Gets or sets the width.
Top
Methods
  NameDescription
Public methodAddHandler
Adds the handler.
Public methodAddToEventRoute
Adds to event route.
Public methodApplyTemplate
Applies the template.
Public methodArrange
Arrange layout pass
Protected methodArrangeOverride
Arrange layout pass - overrider method for children
Public methodCaptureMouse
Captures the mouse.
Public methodCaptureTouch
Captures the touch.
Public methodClearValue
Clears the value.
(Inherited from DependencyObject.)
Public methodCoerceValue
Coerces the value.
(Inherited from DependencyObject.)
Public methodContains
Determines whether [this element] contains [the specified point].
Public methodDraw
Draws UI Element.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from DependencyObject.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindResource
Finds the resource.
Public methodFocus
Focuses this instance.
Public methodGetHashCode
Returns a hash code for this instance.
(Inherited from DependencyObject.)
Public methodGetLocalValueEnumerator
Gets the local value enumerator.
(Inherited from DependencyObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the value.
(Inherited from DependencyObject.)
Public methodInvalidateArrange
Invalidates the arrange pass
Protected methodInvalidateIsEnabledOnChildren
Invalidates the IsEnabled property value on children.
Public methodInvalidateMeasure
Invalidates the measure pass
Public methodMeasure
Measures UI control
Protected methodMeasureOverride
Measure layout pass
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnApplyTemplate
Called when [apply template].
Protected methodOnDraw
Called when [draw].
Protected methodOnGamepadDown
Raises the [E:GamepadDown] event.
Protected methodOnGamepadMove
Called when [game pad move].
Protected methodOnGamepadTrigger
Called when [game pad trigger].
Protected methodOnGamepadUp
Called when [game pad up].
Protected methodOnGotFocus
Called when [got focus].
Protected methodOnIsEnabledChanged
Raises the [E:IsEnabledChanged] event.
Protected methodOnIsMouseCapturedChanged
Raises the [E:IsMouseCapturedChanged] event.
Protected methodOnKeyDown
Raises the [E:KeyDown] event.
Protected methodOnKeyUp
Called when [key up].
Protected methodOnLostFocus
Called when [lost focus].
Protected methodOnMouseDown
Raises the [E:MouseDown] event.
Protected methodOnMouseEnter
Raises the [E:MouseEnter] event.
Protected methodOnMouseLeave
Raises the [E:MouseLeave] event.
Protected methodOnMouseMove
Called when [mouse move].
Protected methodOnMouseUp
Called when [mouse up].
Protected methodOnMouseWheel
Called when [mouse wheel].
Protected methodOnOpacityChanged
Raises the [E:OpacityChanged] event.
Protected methodOnPreviewGamepadDown
Called when [preview game pad down].
Protected methodOnPreviewGamepadMove
Called when [preview game pad move].
Protected methodOnPreviewGamepadTrigger
Called when [preview game pad trigger].
Protected methodOnPreviewGamepadUp
Called when [preview game pad up].
Protected methodOnPreviewKeyDown
Called when [preview key down].
Protected methodOnPreviewKeyUp
Called when [preview key up].
Protected methodOnPreviewMouseDown
Called when [preview mouse down].
Protected methodOnPreviewMouseMove
Called when [preview mouse move].
Protected methodOnPreviewMouseUp
Called when [preview mouse up].
Protected methodOnPreviewTouchDown
Raises the [E:PreviewTouchDown] event.
Protected methodOnPreviewTouchGesture
Raises the [E:PreviewTouchGesture] event.
Protected methodOnPreviewTouchMove
Raises the [E:PreviewTouchMove] event.
Protected methodOnPreviewTouchUp
Raises the [E:PreviewTouchUp] event.
Protected methodOnPropertyChanged
Called when [property changed].
(Overrides DependencyObjectOnPropertyChanged(DependencyProperty).)
Protected methodOnTouchDown
Raises the [E:TouchDown] event.
Protected methodOnTouchGesture
Raises the [E:TouchGesture] event.
Protected methodOnTouchMove
Raises the [E:TouchMove] event.
Protected methodOnTouchUp
Raises the [E:TouchUp] event.
Public methodRaiseEvent
Raises the event.
Public methodReadLocalValue
Reads the local value.
(Inherited from DependencyObject.)
Public methodReleaseMouseCapture
Releases the mouse capture.
Public methodReleaseTouchCapture
Releases the touch capture.
Public methodRemoveHandler
Removes the handler.
Public methodSetBinding
Sets the binding.
(Inherited from DependencyObject.)
Public methodSetResourceReference
Sets the resource reference.
(Inherited from DependencyObject.)
Public methodSetValue
Sets the value.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventCollapsed
Occurs when [collapsed].
Public eventDataContextChanged
Occurs when [data context changed].
Public eventGamepadDown
Occurs when [game pad down].
Public eventGamepadMove
Occurs when [game pad move].
Public eventGamepadTrigger
Occurs when [game pad trigger].
Public eventGamepadUp
Occurs when [game pad up].
Public eventGotFocus
Occurs when [got focus].
Public eventHidden
Occurs when [hidden].
Public eventIsEnabledChanged
Occurs when [is enabled changed].
Public eventIsMouseCapturedChanged
Occurs when [is mouse captured changed].
Public eventKeyDown
Occurs when [key down].
Public eventKeyUp
Occurs when [key up].
Public eventLayoutUpdated
Occurs when [layout updated].
Public eventLoaded
Occurs when [loaded].
Public eventLostFocus
Occurs when [lost focus].
Public eventMouseDown
Occurs when [mouse down].
Public eventMouseEnter
Occurs when [mouse enter].
Public eventMouseLeave
Occurs when [mouse leave].
Public eventMouseMove
Occurs when [mouse move].
Public eventMouseUp
Occurs when [mouse up].
Public eventMouseWheel
Occurs when [mouse wheel].
Public eventPreviewGamepadDown
Occurs when [preview game pad down].
Public eventPreviewGamepadMove
Occurs when [preview game pad move].
Public eventPreviewGamepadTrigger
Occurs when [preview game pad trigger].
Public eventPreviewGamepadUp
Occurs when [preview game pad up].
Public eventPreviewKeyDown
Occurs when [preview key down].
Public eventPreviewKeyUp
Occurs when [preview key up].
Public eventPreviewMouseDown
Occurs when [preview mouse down].
Public eventPreviewMouseMove
Occurs when [preview mouse move].
Public eventPreviewMouseUp
Occurs when [preview mouse up].
Public eventPreviewMouseWheel
Occurs when [preview mouse wheel].
Public eventPreviewTouchDown
Occurs when [preview touch down].
Public eventPreviewTouchGesture
Occurs when [preview touch gesture].
Public eventPreviewTouchMove
Occurs when [preview touch move].
Public eventPreviewTouchUp
Occurs when [preview touch up].
Public eventSizeChanged
Occurs when [size changed].
Public eventTouchDown
Occurs when [touch down].
Public eventTouchGesture
Occurs when [touch gesture].
Public eventTouchMove
Occurs when [touch move].
Public eventTouchUp
Occurs when [touch up].
Public eventUnloaded
Occurs when [unloaded].
Public eventVisible
Occurs when [visible].
Top
Fields
  NameDescription
Public fieldStatic memberCollapsedEvent
The collapsed event
Public fieldStatic memberCursorTypeProperty
The cursor type property
Public fieldStatic memberDataContextProperty
The data context dependency property
Protected fielddesiredSize
The desired size
Public fieldStatic memberEffectProperty
The effect property
Public fieldStatic memberFocusableProperty
The focusable property
Public fieldStatic memberGamepadDownEvent
The game pad down event
Public fieldStatic memberGamepadMoveEvent
The game pad move event
Public fieldStatic memberGamepadTriggerEvent
The game pad trigger event
Public fieldStatic memberGamepadUpEvent
The game pad up event
Public fieldStatic memberGotFocusEvent
The got focus event
Public fieldStatic memberHeightProperty
The height dependency property
Public fieldStatic memberHiddenEvent
The hidden event
Public fieldStatic memberHorizontalAlignmentProperty
The horizontal alignment dependency property
Public fieldStatic memberIsEnabledProperty
The is enabled property
Public fieldStatic memberIsFocusedProperty
The is focused property
Public fieldStatic memberIsHitTestVisibleProperty
The is hit test visible property
Public fieldStatic memberIsKeyboardFocusedProperty
The is keyboard focused property
Public fieldStatic memberIsMouseCapturedProperty
The is mouse captured property
Public fieldStatic memberIsMouseOverProperty
The is mouse over property
Public fieldStatic memberIsTouchCapturedProperty
The is touch captured property
Public fieldStatic memberKeyDownEvent
The key down event
Public fieldStatic memberKeyUpEvent
The key up event
Public fieldStatic memberLoadedEvent
The loaded event
Public fieldStatic memberLostFocusEvent
The lost focus event
Public fieldStatic memberMarginProperty
The margin dependency property
Public fieldStatic memberMaxHeightProperty
The maximum height property
Public fieldStatic memberMaxWidthProperty
The maximum width property
Public fieldStatic memberMinHeightProperty
The minimum height property
Public fieldStatic memberMinWidthProperty
The minimum width property
Public fieldStatic memberMouseDownEvent
The mouse down event
Public fieldStatic memberMouseEnterEvent
The mouse enter event
Public fieldStatic memberMouseLeaveEvent
The mouse leave event
Public fieldStatic memberMouseMoveEvent
The mouse move event
Public fieldStatic memberMouseUpEvent
The mouse up event
Public fieldStatic memberMouseWheelEvent
The mouse wheel event
Public fieldStatic memberNameProperty
The name property
Protected fieldneedsClipBounds
The needs clip bounds
Public fieldStatic memberOpacityProperty
The opacity property
Public fieldStatic memberPreviewGamepadDownEvent
The preview game pad down event
Public fieldStatic memberPreviewGamepadMoveEvent
The preview game pad move event
Public fieldStatic memberPreviewGamepadTriggerEvent
The preview game pad trigger event
Public fieldStatic memberPreviewGamepadUpEvent
The preview game pad up event
Public fieldStatic memberPreviewKeyDownEvent
The preview key down event
Public fieldStatic memberPreviewKeyUpEvent
The preview key up event
Public fieldStatic memberPreviewMouseDownEvent
The preview mouse down event
Public fieldStatic memberPreviewMouseMoveEvent
The preview mouse move event
Public fieldStatic memberPreviewMouseUpEvent
The preview mouse up event
Public fieldStatic memberPreviewMouseWheelEvent
The preview mouse wheel event
Public fieldStatic memberPreviewTouchDownEvent
The preview touch down event
Public fieldStatic memberPreviewTouchGestureEvent
The preview touch gesture event
Public fieldStatic memberPreviewTouchMoveEvent
The preview touch move event
Public fieldStatic memberPreviewTouchUpEvent
The preview touch up event
Public fieldStatic memberSizeChangedEvent
The size changed event
Public fieldStatic memberSnapsToDevicePixelsProperty
The snaps to device pixels property
Public fieldStatic memberStyleProperty
The style property
Public fieldStatic memberTagProperty
The tag dependency property
Public fieldStatic memberToolTipProperty
The tool tip property
Public fieldStatic memberTouchDownEvent
The touch down event
Public fieldStatic memberTouchGestureEvent
The touch gesture event
Public fieldStatic memberTouchMoveEvent
The touch move event
Public fieldStatic memberTouchUpEvent
The touch up event
Protected fieldunclippedDesiredSize
The unclipped desired size
Public fieldStatic memberUnloadedEvent
The unloaded event
Public fieldStatic memberVerticalAlignmentProperty
The vertical alignment dependency property
Public fieldStatic memberVisibilityProperty
The visibility dependency property
Public fieldStatic memberVisibleEvent
The visible event
Protected fieldvisualOffset
The visual offset rectangle
Public fieldStatic memberWidthProperty
The width dependency property
Top
See Also
Inheritance Hierarchy