NoesisGUI

UIElement Class

Base class for core level implementations building on elements and basic presentation characteristics.

http://msdn.microsoft.com/en-us/library/system.windows.uielement.aspx

Inheritance Hierarchy

Visual
UIElement

INDEX Class Hierarchy Index

Methods

From UIElement

Name Description
AddHandler Adds a handler to the specified routed event
Arrange Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore implementation to form a recursive layout update. This method constitutes the second pass of a layout update
CaptureMouse Attempts to force capture of the mouse to this element
CaptureTouch Attempts to force capture of a touch to this element
Focus Attempts to set focus to this element.
GetKeyboard Gets keyboard input manager
GetMouse Public methods in UIElement Gets mouse input manager
GetTouch Gets touch input manager
GetUIParent Gets the logical or visual parent for this element
GetUIView Finds the View where this element is connected to traversing visual or logical ancestors, because visual tree might not be generated yet
InvalidateArrange Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UIElement.UpdateLayout().
InvalidateMeasure Invalidates the measurement state (layout) for the element.
InvalidateVisual Invalidates the rendering of the element, and forces a complete new layout pass. UIElement.OnRender(DrawingContext) is called after the layout cycle is completed.
IsArrangeValid Indicates if arrange is valid
IsMeasureValid Indicates if measured size is valid
Measure Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore implementations to form a recursive layout update. Calling this method constitutes the first pass of a layout update in the layout system
MoveFocus Request to move the focus from this element to another element. Returns true if focus is moved successfully, returns false if there is no next element
PredictFocus When overridden in a derived class, returns the element that would receive focus for a specified focus traversal direction, without actually moving focus to that element
RaiseEvent Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data)
ReleaseAllTouchCaptures Releases all captured touch devices from this element
ReleaseMouseCapture Releases the mouse capture, if this element held the capture
ReleaseTouchCapture Attempts to release the specified touch device from this element
RemoveHandler Removes a handler from the specified routed event
UpdateLayout Ensures that all visual child elements of this element are properly updated for layout

From Visual

Name Description
ConnectToView Enables or disables visual for render
FindCommonVisualAncestor Finds the common ancestor of two visuals objects
GetRenderTreeId Gets render tree id
IsAncestorOf Determines whether the visual object is an ancestor of the descendant visual object
IsConnectedToView Indicates if this visual has been connected to a View
IsDescendantOf Determines whether the visual object is a descendant of the ancestor visual object
IsInRenderTree Indicates if a render node has been created in the RenderTree for this visual
IsInvalidated Indicates if this visual is invalidated and should send updates to the render tree
PointFromScreen Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual
PointToScreen Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates
SetVisualBrushFlag Sets the flag that indicates that this Visual contains a VisualBrush
TransformToAncestor Returns a transform that can be used to transform coordinates from the Visual to the specified ancestor of the visual object
TransformToDescendant Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant
TransformToVisual Returns a transform that can be used to transform coordinates from the Visual to the specified visual object

From DependencyObject

Name Description
ClearAnimation Clears the animation value of a property
ClearAnimation Clears the animation value of a property
ClearLocalValue Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier
CoerceValue Coerces and validates the effective property value
CoerceValue Coerces and validates the effective property value
DependencyPropertyChanged Returns the PropertyChanged event
Destroyed Destroyed delegate is raised when object is going to be destroyed
GetBaseValue Returns the base value without animation nor coerce (this never returns IExpression like GetLocalValue)
GetLocalValue Returns the local value of a dependency property, if it exists.
GetValue Returns the current effective value of a dependency property on this instance of a DependencyObject
GetValueObject Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value
GetValueProvider Gets the provider that returns the effective value for the specified dependency property
HasAnimatedProperties Returns true if there is any animated property
InvalidateProperty Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed
IsCached Returns if the value is stored in the cache. If true, the priority is returned in the provider field
SetAnimation Sets the animated value of a property
SetCurrentValue Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value
SetCurrentValueObject Sets the current value of a dependency property using a boxed value
SetExpression Sets the expression to be evaluated dynamically to obtain the value of the property
SetValue Sets the local value of a dependency property
SetValueObject Sets the local value (boxed) of a dependency property

Properties

From UIElement


Name Description
DP AllowDrop Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation.
DP Clip Gets or sets the geometry used to define the outline of the contents of an element
DP ClipToBounds Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element
RO CommandBindings Gets a collection of CommandBinding objects associated with this element
RO DesiredSize Gets control's desired size (calculated after measure process)
DP Focusable Gets or sets a value that indicates whether the element can receive focus.
RO InputBindings Gets a collection of InputBinding objects associated with this element
DP IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface
DP_RO IsFocused Indicates whether this element has the focus
DP IsHitTestVisible Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content.
DP_RO IsKeyboardFocusWithin Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements
DP_RO IsKeyboardFocused Gets a value indicating whether this element has keyboard focus
DP IsManipulationEnabled Gets or sets a value that indicates whether manipulation events are enabled on this element
DP_RO IsMouseCaptureWithin Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree.
DP_RO IsMouseCaptured Gets a value indicating whether the mouse is captured to this element
DP_RO IsMouseDirectlyOver Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account.
DP_RO IsMouseOver Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree).
DP_RO IsVisible Indicates whether this element is visible in the user interface
DP Opacity Gets or sets the opacity factor applied to the entire element when it is rendered
DP OpacityMask Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element
DP Projection Gets or sets the perspective projection (3D effect) to apply when rendering this element
RO RenderSize Gets calculated (during arrange) render size
DP RenderTransform Gets or sets transform information that affects the rendering position of this element
DP RenderTransformOrigin Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element.
DP Visibility Gets or sets the user interface visibility of this element
DP_ Dependency Property - RO_ Read only

From Visual


Name Description
RO View Gets the view where this visual is connected to
DP_ Dependency Property - RO_ Read only

Events

From UIElement


Name Description
N FocusableChanged Occurs when the value of the Focusable property changes
R GotFocus Occurs when this element gets logical focus
R GotKeyboardFocus Occurs when the keyboard is focused on this element
R GotMouseCapture Occurs when this element captures the mouse
R GotTouchCapture Occurs when a touch is captured to this element
N IsEnabledChanged Occurs when the value of the IsEnabled property on this element changes
N IsHitTestVisibleChanged Occurs when the value of the IsHitTestVisible dependency property changes on this element
N IsKeyboardFocusWithinChanged Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element
N IsKeyboardFocusedChanged Occurs when the value of the IsKeyboardFocused property changes on this element
N IsMouseCaptureWithinChanged Occurs when the value of the IsMouseCaptureWithinProperty changes on this element
N IsMouseCapturedChanged Occurs when the value of the IsMouseCaptured property changes on this element
N IsMouseDirectlyOverChanged Occurs when the value of the IsMouseDirectlyOver property changes on this element
N IsVisibleChanged Occurs when the value of the IsVisible property changes on this element
R KeyDown Occurs when a key is pressed while focus is on this element
R KeyUp Occurs when a key is released while focus is on this element
R LostFocus Occurs when this element loses logical focus
R LostKeyboardFocus Occurs when the keyboard is no longer focused on this element
R LostMouseCapture Occurs when this element loses mouse capture
R LostTouchCapture Occurs when this element loses a touch capture
R ManipulationCompleted Occurs when a manipulation and inertia on the UIElement object is complete
R ManipulationDelta Occurs when the input device changes position during a manipulation
R ManipulationInertiaStarting Occurs when the input device loses contact with the UIElement during a manipulation and inertia begins
R ManipulationStarted Occurs when an input device begins a manipulation on the UIElement object
R ManipulationStarting Occurs when the manipulation processor is first created
R MouseDown Occurs when any mouse button is pressed while the pointer is over this element
R MouseEnter Occurs when the mouse pointer enters the bounds of this element
R MouseLeave Occurs when the mouse pointer leaves the bounds of this element
R MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element
R MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element
R MouseMove Occurs when the mouse pointer moves while over this element
R MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element
R MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element
R MouseUp Occurs when any mouse button is released over this element
R MouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element
R PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element
R PreviewKeyDown Occurs when a key is pressed while focus is on this element
R PreviewKeyUp Occurs when a key is released while focus is on this element
R PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element
R PreviewMouseDown Occurs when any mouse button is pressed while the pointer is over this element
R PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element
R PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element
R PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over this element
R PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element
R PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element
R PreviewMouseUp Occurs when any mouse button is released while the mouse pointer is over this element
R PreviewMouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element
R PreviewTextInput Occurs when this element gets text in a device-independent manner
R PreviewTouchDown Occurs when a finger touches the screen while the finger is over this element
R PreviewTouchMove Occurs when a finger moves on the screen while the finger is over this element
R PreviewTouchUp Occurs when a finger is raised off of the screen while the finger is over this element
R QueryCursor Occurs when the cursor is requested to display
R TextInput Occurs when this element gets text in a device-independent manner
R TouchDown Occurs when a finger touches the screen while the finger is over this element
R TouchEnter Occurs when a touch moves from outside to inside the bounds of this element
R TouchLeave Occurs when a touch moves from inside to outside the bounds of this element
R TouchMove Occurs when a finger moves on the screen while the finger is over this element
R TouchUp Occurs when a finger is raised off of the screen while the finger is over this element
R Routed Event - N Non routed event - D Delegate Event
© 2017 Noesis Technologies