Show / Hide Table of Contents

Class UIRoot

Implements user interface root control, root of UI in visual tree

Inheritance
System.Object
DependencyObject
UIElement
Control
ContentControl
UIRoot
Inherited Members
ContentControl.ContentProperty
ContentControl.Content
ContentControl.HasContent
Control.BackgroundProperty
Control.Background
Control.BorderBrushProperty
Control.BorderBrush
Control.BorderThicknessProperty
Control.BorderThickness
Control.ForegroundProperty
Control.Foreground
Control.FontProperty
Control.Font
Control.FontFamilyProperty
Control.FontFamily
Control.FontSizeProperty
Control.FontSize
Control.FontStyleProperty
Control.FontStyle
Control.PaddingProperty
Control.Padding
Control.TabIndexProperty
Control.TabIndex
Control.IsTabStopProperty
Control.IsTabStop
Control.TemplateProperty
Control.Template
Control.HorizontalContentAlignmentProperty
Control.HorizontalContentAlignment
Control.VerticalContentAlignmentProperty
Control.VerticalContentAlignment
Control.PreviewMouseDoubleClickEvent
Control.PreviewMouseDoubleClick
Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs)
Control.MouseDoubleClickEvent
Control.MouseDoubleClick
Control.OnMouseDoubleClick(MouseButtonEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
Control.OnDraw(Renderer, Double, Single)
Control.InvalidateIsEnabledOnChildren()
UIElement.visualOffset
UIElement.unclippedDesiredSize
UIElement.desiredSize
UIElement.needsClipBounds
UIElement.DesiredSize
UIElement.RenderSize
UIElement.DeviceRenderSize
UIElement.VisualOffset
UIElement.VisualPosition
UIElement.RenderPosition
UIElement.Parent
UIElement.ActualHeight
UIElement.ActualWidth
UIElement.IsLoaded
UIElement.TemplatedParent
UIElement.NameProperty
UIElement.Name
UIElement.HorizontalAlignmentProperty
UIElement.HorizontalAlignment
UIElement.VerticalAlignmentProperty
UIElement.VerticalAlignment
UIElement.VisibilityProperty
UIElement.Visibility
UIElement.MarginProperty
UIElement.Margin
UIElement.HeightProperty
UIElement.Height
UIElement.MaxHeightProperty
UIElement.MaxHeight
UIElement.MinHeightProperty
UIElement.MinHeight
UIElement.WidthProperty
UIElement.Width
UIElement.MaxWidthProperty
UIElement.MaxWidth
UIElement.MinWidthProperty
UIElement.MinWidth
UIElement.TagProperty
UIElement.Tag
UIElement.IsEnabledProperty
UIElement.IsEnabledCoerceValue
UIElement.IsEnabled
UIElement.IsMouseOverProperty
UIElement.IsMouseOver
UIElement.IsMouseCapturedProperty
UIElement.IsMouseCaptured
UIElement.IsTouchCapturedProperty
UIElement.IsTouchCaptured
UIElement.IsKeyboardFocusedProperty
UIElement.IsKeyboardFocused
UIElement.StyleProperty
UIElement.Style
UIElement.DataContextProperty
UIElement.DataContext
UIElement.IsFocusedProperty
UIElement.IsFocused
UIElement.FocusableProperty
UIElement.Focusable
UIElement.IsHitTestVisibleProperty
UIElement.IsHitTestVisible
UIElement.SnapsToDevicePixelsProperty
UIElement.SnapsToDevicePixels
UIElement.UseLayoutRoundingProperty
UIElement.UseLayoutRounding
UIElement.OpacityProperty
UIElement.Opacity
UIElement.IsMeasureValid
UIElement.IsArrangeValid
UIElement.Resources
UIElement.InputBindings
UIElement.ToolTipProperty
UIElement.ToolTip
UIElement.Triggers
UIElement.CursorTypeProperty
UIElement.CursorType
UIElement.EffectProperty
UIElement.Effect
UIElement.DataContextChanged
UIElement.IsEnabledChanged
UIElement.IsMouseCapturedChanged
UIElement.VisibleEvent
UIElement.Visible
UIElement.HiddenEvent
UIElement.Hidden
UIElement.CollapsedEvent
UIElement.Collapsed
UIElement.LoadedEvent
UIElement.Loaded
UIElement.UnloadedEvent
UIElement.Unloaded
UIElement.MouseDownEvent
UIElement.MouseDown
UIElement.PreviewMouseDownEvent
UIElement.PreviewMouseDown
UIElement.MouseUpEvent
UIElement.MouseUp
UIElement.PreviewMouseUpEvent
UIElement.PreviewMouseUp
UIElement.PreviewMouseWheelEvent
UIElement.PreviewMouseWheel
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.PreviewMouseMoveEvent
UIElement.PreviewMouseMove
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyDown
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.PreviewKeyUpEvent
UIElement.PreviewKeyUp
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.GamepadDownEvent
UIElement.GamepadDown
UIElement.PreviewGamepadDownEvent
UIElement.PreviewGamepadDown
UIElement.GamepadUpEvent
UIElement.GamepadUp
UIElement.PreviewGamepadUpEvent
UIElement.PreviewGamepadUp
UIElement.PreviewGamepadMoveEvent
UIElement.PreviewGamepadMove
UIElement.GamepadMoveEvent
UIElement.GamepadMove
UIElement.PreviewGamepadTriggerEvent
UIElement.PreviewGamepadTrigger
UIElement.GamepadTriggerEvent
UIElement.GamepadTrigger
UIElement.PreviewTouchDownEvent
UIElement.PreviewTouchDown
UIElement.TouchDownEvent
UIElement.TouchDown
UIElement.PreviewTouchUpEvent
UIElement.PreviewTouchUp
UIElement.TouchUpEvent
UIElement.TouchUp
UIElement.PreviewTouchMoveEvent
UIElement.PreviewTouchMove
UIElement.TouchMoveEvent
UIElement.TouchMove
UIElement.PreviewTouchGestureEvent
UIElement.PreviewTouchGesture
UIElement.TouchGestureEvent
UIElement.TouchGesture
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.SizeChangedEvent
UIElement.SizeChanged
UIElement.LayoutUpdated
UIElement.RequestBringIntoViewEvent
UIElement.RequestBringIntoView
UIElement.DpiScaleX
UIElement.DpiScaleY
UIElement.OnLostFocus(Object, RoutedEventArgs)
UIElement.OnGotFocus(Object, RoutedEventArgs)
UIElement.OnPreviewMouseUp(Object, MouseButtonEventArgs)
UIElement.OnPreviewMouseDown(Object, MouseButtonEventArgs)
UIElement.OnGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnPreviewGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnPreviewGamepadMove(Object, GamepadMoveEventArgs)
UIElement.OnGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnPreviewGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnGamepadDown(GamepadButtonEventArgs)
UIElement.OnPreviewGamepadDown(Object, GamepadButtonEventArgs)
UIElement.OnKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyDown(Object, KeyEventArgs)
UIElement.OnPreviewMouseMove(Object, MouseEventArgs)
UIElement.OnMouseMove(Object, MouseEventArgs)
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.OnPreviewMouseWheel(Object, MouseWheelEventArgs)
UIElement.OnMouseUp(Object, MouseButtonEventArgs)
UIElement.OnMouseDown(MouseButtonEventArgs)
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.OnTouchUp(TouchEventArgs)
UIElement.OnPreviewTouchUp(TouchEventArgs)
UIElement.OnTouchDown(TouchEventArgs)
UIElement.OnPreviewTouchDown(TouchEventArgs)
UIElement.OnTouchMove(TouchEventArgs)
UIElement.OnPreviewTouchMove(TouchEventArgs)
UIElement.OnTouchGesture(TouchGestureEventArgs)
UIElement.OnPreviewTouchGesture(TouchGestureEventArgs)
UIElement.ApplyTemplate()
UIElement.OnApplyTemplate()
UIElement.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
UIElement.OnOpacityChanged(DependencyPropertyChangedEventArgs)
UIElement.Contains(PointF, Size)
UIElement.Draw(Renderer, Double, Single)
UIElement.Measure(Size)
UIElement.InvalidateMeasure()
UIElement.Arrange(Rect)
UIElement.InvalidateArrange()
UIElement.FindResource(Object)
UIElement.AddHandler(RoutedEvent, Delegate)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.RaiseEvent(RoutedEventArgs)
UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
UIElement.CaptureMouse()
UIElement.ReleaseMouseCapture()
UIElement.OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.CaptureTouch()
UIElement.ReleaseTouchCapture()
UIElement.Focus()
UIElement.BringIntoView()
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class UIRoot : ContentControl

Constructors

UIRoot()

Initializes a new instance of the UIRoot class.

Declaration
public UIRoot()

UIRoot(Int32, Int32)

Initializes a new instance of the UIRoot class.

Declaration
public UIRoot(int width, int height)
Parameters
Type Name Description
System.Int32 width

The width (device pixels).

System.Int32 height

The height (device pixels).

Fields

IsTabNavigationEnabledProperty

The is tab navigation enabled property

Declaration
public static readonly DependencyProperty IsTabNavigationEnabledProperty
Field Value
Type Description
DependencyProperty

MessageBoxOverlayProperty

The message box overlay property

Declaration
public static readonly DependencyProperty MessageBoxOverlayProperty
Field Value
Type Description
DependencyProperty

OwnedWindowsContentProperty

The owned windows content property

Declaration
public static readonly DependencyProperty OwnedWindowsContentProperty
Field Value
Type Description
DependencyProperty

Properties

DpiX

Gets or sets the X DPI

Declaration
public static int DpiX { get; set; }
Property Value
Type Description
System.Int32

The X DPI

DpiY

Gets or sets the Y DPI

Declaration
public static int DpiY { get; set; }
Property Value
Type Description
System.Int32

The Y DPI

EnabledMultiThreadLocking

Gets or sets a value indicating whether is [enabled multi thread locking].

Declaration
public bool EnabledMultiThreadLocking { get; set; }
Property Value
Type Description
System.Boolean

true if [enabled multi thread locking]; otherwise, false.

IsTabNavigationEnabled

Gets or sets a value indicating whether this instance is tab navigation enabled.

Declaration
public bool IsTabNavigationEnabled { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is tab navigation enabled; otherwise, false.

MessageBoxOverlay

Gets or sets the message box overlay.

Declaration
public ColorW MessageBoxOverlay { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Media.ColorW

The message box overlay.

OwnedWindowsContent

Gets or sets the content of the owned windows.

Declaration
public IEnumerable OwnedWindowsContent { get; set; }
Property Value
Type Description
System.Collections.IEnumerable

The content of the owned windows.

PopupWindow

Gets or sets the pop up window.

Declaration
public static Window PopupWindow { get; set; }
Property Value
Type Description
Window

The pop up window.

VirtualKeyboard

Gets or sets the virtual keyboard.

Declaration
public VirtualKeyboard VirtualKeyboard { get; set; }
Property Value
Type Description
VirtualKeyboard

The virtual keyboard.

Windows

Gets the windows - items created based on OwnedWindowsContent content

Declaration
public List<Window> Windows { get; }
Property Value
Type Description
System.Collections.Generic.List<Window>

The windows.

Methods

Draw(Double)

Draws content.

Declaration
public void Draw(double elapsedGameTime)
Parameters
Type Name Description
System.Double elapsedGameTime

The elapsed game time (TotalMilliseconds).

InputHitTest(Single, Single)

Input method for hit test

Declaration
public UIElement InputHitTest(float x, float y)
Parameters
Type Name Description
System.Single x

The x.

System.Single y

The y.

Returns
Type Description
UIElement

OnGamepadMove(Object, GamepadMoveEventArgs)

Called when [game pad move].

Declaration
protected override void OnGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

GamepadMoveEventArgs e

The GamepadMoveEventArgs instance containing the event data.

Overrides
UIElement.OnGamepadMove(Object, GamepadMoveEventArgs)

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e

The KeyEventArgs instance containing the event data.

Overrides
UIElement.OnKeyDown(KeyEventArgs)

OnPropertyChanged(DependencyProperty)

Called when [property changed].

Declaration
protected override void OnPropertyChanged(DependencyProperty property)
Parameters
Type Name Description
DependencyProperty property

The property.

Overrides
Control.OnPropertyChanged(DependencyProperty)

ProcessDispatcherQueue()

Processes dispatcher queue with request (invokes) from the other thread. Always call this on the main UI thread.

Declaration
public void ProcessDispatcherQueue()

Resize(Int32, Int32)

Resizes UI

Declaration
public void Resize(int width, int height)
Parameters
Type Name Description
System.Int32 width

The width (device pixels).

System.Int32 height

The height (device pixels).

ShowGamepadHelp(UIElement)

Shows gamepad help section for specific element

Declaration
public void ShowGamepadHelp(UIElement element)
Parameters
Type Name Description
UIElement element

element with gamepad help section

UpdateInput(Double)

Updates the input.

Declaration
public void UpdateInput(double elapsedGameTime)
Parameters
Type Name Description
System.Double elapsedGameTime

The elapsed game time (TotalMilliseconds).

UpdateLayout(Double)

Updates the layout.

Declaration
public void UpdateLayout(double elapsedGameTime)
Parameters
Type Name Description
System.Double elapsedGameTime

The elapsed game time (TotalMilliseconds).

Back to top Generated by DocFX