Show / Hide Table of Contents

Class Control

Implements base class for user interface controls

Inheritance
System.Object
DependencyObject
UIElement
Control
Chart
LineSeries2D
Border
ContentControl
DataGridRow
ItemsControl
Panel
RangeBase
TextBoxBase
Thumb
TextBlock
VirtualKeyboard
Inherited Members
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.OnGamepadMove(Object, GamepadMoveEventArgs)
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.OnKeyDown(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 Control : UIElement

Constructors

Control()

Initializes a new instance of the Control class.

Declaration
public Control()

Fields

BackgroundProperty

The background dependency property

Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
Type Description
DependencyProperty

BorderBrushProperty

The border brush property

Declaration
public static readonly DependencyProperty BorderBrushProperty
Field Value
Type Description
DependencyProperty

BorderThicknessProperty

The border thickness property

Declaration
public static readonly DependencyProperty BorderThicknessProperty
Field Value
Type Description
DependencyProperty

FontFamilyProperty

The font family property

Declaration
public static readonly DependencyProperty FontFamilyProperty
Field Value
Type Description
DependencyProperty

FontProperty

The font property

Declaration
public static readonly DependencyProperty FontProperty
Field Value
Type Description
DependencyProperty

FontSizeProperty

The font size property

Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
Type Description
DependencyProperty

FontStyleProperty

The font style property

Declaration
public static readonly DependencyProperty FontStyleProperty
Field Value
Type Description
DependencyProperty

ForegroundProperty

The foreground dependency property

Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
Type Description
DependencyProperty

HorizontalContentAlignmentProperty

The horizontal content alignment property

Declaration
public static readonly DependencyProperty HorizontalContentAlignmentProperty
Field Value
Type Description
DependencyProperty

IsTabStopProperty

The is tab stop property

Declaration
public static readonly DependencyProperty IsTabStopProperty
Field Value
Type Description
DependencyProperty

MouseDoubleClickEvent

The mouse double click event

Declaration
public static readonly RoutedEvent MouseDoubleClickEvent
Field Value
Type Description
RoutedEvent

PaddingProperty

The padding dependency property

Declaration
public static readonly DependencyProperty PaddingProperty
Field Value
Type Description
DependencyProperty

PreviewMouseDoubleClickEvent

The preview mouse double click event

Declaration
public static readonly RoutedEvent PreviewMouseDoubleClickEvent
Field Value
Type Description
RoutedEvent

TabIndexProperty

The tab index property

Declaration
public static readonly DependencyProperty TabIndexProperty
Field Value
Type Description
DependencyProperty

TemplateProperty

The template property

Declaration
public static readonly DependencyProperty TemplateProperty
Field Value
Type Description
DependencyProperty

VerticalContentAlignmentProperty

The vertical content alignment property

Declaration
public static readonly DependencyProperty VerticalContentAlignmentProperty
Field Value
Type Description
DependencyProperty

Properties

Background

Gets or sets the background.

Declaration
public Brush Background { get; set; }
Property Value
Type Description
Brush

The background.

BorderBrush

Gets or sets the border brush.

Declaration
public Brush BorderBrush { get; set; }
Property Value
Type Description
Brush

The border brush.

BorderThickness

Gets or sets the border thickness.

Declaration
public Thickness BorderThickness { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Thickness

The border thickness.

Font

Gets or sets the font.

Declaration
public FontBase Font { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Media.FontBase

The font.

FontFamily

Gets or sets the font family.

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

The font family.

FontSize

Gets or sets the size of the font.

Declaration
public float FontSize { get; set; }
Property Value
Type Description
System.Single

The size of the font.

FontStyle

Gets or sets the font style.

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

The font style.

Foreground

Gets or sets the foreground.

Declaration
public Brush Foreground { get; set; }
Property Value
Type Description
Brush

The foreground.

HorizontalContentAlignment

Gets or sets the horizontal content alignment.

Declaration
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
Type Description
HorizontalAlignment

The horizontal content alignment.

IsTabStop

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

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

true if this instance is tab stop; otherwise, false.

Padding

Gets or sets the padding.

Declaration
public Thickness Padding { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Thickness

The padding.

TabIndex

Gets or sets the index of the tab.

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

The index of the tab.

Template

Gets or sets the template.

Declaration
public ControlTemplate Template { get; set; }
Property Value
Type Description
ControlTemplate

The template.

VerticalContentAlignment

Gets or sets the vertical content alignment.

Declaration
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
Type Description
VerticalAlignment

The vertical content alignment.

Methods

ArrangeOverride(Size)

Arrange layout pass - overrider method for children

Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type Name Description
EmptyKeys.UserInterface.Size finalSize

The final size.

Returns
Type Description
EmptyKeys.UserInterface.Size
Overrides
UIElement.ArrangeOverride(Size)

InvalidateIsEnabledOnChildren()

Invalidates the IsEnabled property value on children.

Declaration
protected override void InvalidateIsEnabledOnChildren()
Overrides
UIElement.InvalidateIsEnabledOnChildren()

MeasureOverride(Size)

Measure layout pass

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type Name Description
EmptyKeys.UserInterface.Size availableSize

available size for element

Returns
Type Description
EmptyKeys.UserInterface.Size
Overrides
UIElement.MeasureOverride(Size)

OnDraw(Renderer, Double, Single)

Called when [draw].

Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
Type Name Description
EmptyKeys.UserInterface.Renderers.Renderer spriterenderer

The sprite renderer.

System.Double elapsedGameTime

The elapsed game time.

System.Single opacity

The opacity.

Overrides
UIElement.OnDraw(Renderer, Double, Single)

OnMouseDoubleClick(MouseButtonEventArgs)

Raises the MouseDoubleClick event.

Declaration
protected virtual void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
Type Name Description
MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

OnPreviewMouseDoubleClick(MouseButtonEventArgs)

Raises the PreviewMouseDoubleClick event.

Declaration
protected virtual void OnPreviewMouseDoubleClick(MouseButtonEventArgs e)
Parameters
Type Name Description
MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

OnPropertyChanged(DependencyProperty)

Called when [property changed].

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

The property.

Overrides
UIElement.OnPropertyChanged(DependencyProperty)

Events

MouseDoubleClick

Occurs when [mouse double click].

Declaration
public event MouseButtonEventHandler MouseDoubleClick
Event Type
Type Description
MouseButtonEventHandler

PreviewMouseDoubleClick

Occurs when [preview mouse double click].

Declaration
public event MouseButtonEventHandler PreviewMouseDoubleClick
Event Type
Type Description
MouseButtonEventHandler
Back to top Generated by DocFX