Class UIRoot
Implements user interface root control, root of UI in visual tree
Inherited Members
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 |
|
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 |
|
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
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
OnPropertyChanged(DependencyProperty)
Called when [property changed].
Declaration
protected override void OnPropertyChanged(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
Overrides
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). |