Click or drag to resize
Control Class
Implements base class for user interface controls
Inheritance Hierarchy

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

The Control type exposes the following members.

Constructors
  NameDescription
Public methodControl
Initializes a new instance of the Control class.
Top
Properties
  NameDescription
Public propertyActualHeight
Gets the actual height.
(Inherited from UIElement.)
Public propertyActualWidth
Gets the actual width.
(Inherited from UIElement.)
Public propertyBackground
Gets or sets the background.
Public propertyBorderBrush
Gets or sets the border brush.
Public propertyBorderThickness
Gets or sets the border thickness.
Public propertyCursorType
Gets or sets the type of the cursor.
(Inherited from UIElement.)
Public propertyDataContext
Gets or sets the data context.
(Inherited from UIElement.)
Public propertyDependencyObjectType
Gets the type of the dependency object.
(Inherited from DependencyObject.)
Public propertyDesiredSize
Gets the size of the desired.
(Inherited from UIElement.)
Public propertyDeviceRenderSize
Gets or sets the size of the device render.
(Inherited from UIElement.)
Public propertyEffect
Gets or sets the effect.
(Inherited from UIElement.)
Public propertyFocusable
Gets or sets a value indicating whether this UIElement is focusable.
(Inherited from UIElement.)
Public propertyFont
Gets or sets the font.
Public propertyFontFamily
Gets or sets the font family.
Public propertyFontSize
Gets or sets the size of the font.
Public propertyFontStyle
Gets or sets the font style.
Public propertyForeground
Gets or sets the foreground.
Public propertyHeight
Gets or sets the height.
(Inherited from UIElement.)
Public propertyHorizontalAlignment
Gets or sets the horizontal alignment.
(Inherited from UIElement.)
Public propertyHorizontalContentAlignment
Gets or sets the horizontal content alignment.
Public propertyInputBindings
Gets the input bindings.
(Inherited from UIElement.)
Public propertyIsArrangeValid
Gets a value indicating whether [is arrange valid].
(Inherited from UIElement.)
Public propertyIsEnabled
Gets or sets a value indicating whether this instance is enabled.
(Inherited from UIElement.)
Protected propertyIsEnabledCoerceValue
Gets a value indicating whether this instance is enabled coerce value.
(Inherited from UIElement.)
Public propertyIsFocused
Gets or sets a value indicating whether this instance is focused.
(Inherited from UIElement.)
Public propertyIsHitTestVisible
Gets or sets a value indicating whether this instance is hit test visible.
(Inherited from UIElement.)
Public propertyIsKeyboardFocused
Gets a value indicating whether this instance is keyboard focused.
(Inherited from UIElement.)
Public propertyIsLoaded
Gets a value indicating whether this instance is loaded.
(Inherited from UIElement.)
Public propertyIsMeasureValid
Gets a value indicating whether [is measure valid].
(Inherited from UIElement.)
Public propertyIsMouseCaptured
Gets a value indicating whether this instance is mouse captured.
(Inherited from UIElement.)
Public propertyIsMouseOver
Gets or sets a value indicating whether this instance is mouse over.
(Inherited from UIElement.)
Public propertyIsSealed
Gets a value indicating whether this instance is sealed.
(Inherited from DependencyObject.)
Public propertyIsTabStop
Gets or sets a value indicating whether this instance is tab stop.
Public propertyIsTouchCaptured
Gets a value indicating whether this instance is touch captured.
(Inherited from UIElement.)
Public propertyMargin
Gets or sets the margin.
(Inherited from UIElement.)
Public propertyMaxHeight
Gets or sets the maximum height.
(Inherited from UIElement.)
Public propertyMaxWidth
Gets or sets the maximum width.
(Inherited from UIElement.)
Public propertyMinHeight
Gets or sets the minimum height.
(Inherited from UIElement.)
Public propertyMinWidth
Gets or sets the minimum width.
(Inherited from UIElement.)
Public propertyName
Gets or sets the name.
(Inherited from UIElement.)
Public propertyOpacity
Gets or sets the opacity.
(Inherited from UIElement.)
Public propertyPadding
Gets or sets the padding.
Public propertyParent
Gets or sets the parent.
(Inherited from UIElement.)
Public propertyRenderPosition
Gets or sets the render position.
(Inherited from UIElement.)
Public propertyRenderSize
Gets the size of the render.
(Inherited from UIElement.)
Public propertyResources
Gets or sets the resources.
(Inherited from UIElement.)
Public propertySnapsToDevicePixels
Gets or sets a value indicating whether [snaps to device pixels].
(Inherited from UIElement.)
Public propertyStyle
Gets or sets the style.
(Inherited from UIElement.)
Public propertyTabIndex
Gets or sets the index of the tab.
Public propertyTag
Gets or sets the tag.
(Inherited from UIElement.)
Public propertyTemplate
Gets or sets the template.
Public propertyTemplatedParent
Gets the templated parent.
(Inherited from UIElement.)
Public propertyToolTip
Gets or sets the tool tip.
(Inherited from UIElement.)
Public propertyTriggers
Gets the triggers - Trigger collection, only EventTriggers should be in this collection, others are ignored
(Inherited from UIElement.)
Public propertyVerticalAlignment
Gets or sets the vertical alignment.
(Inherited from UIElement.)
Public propertyVerticalContentAlignment
Gets or sets the vertical content alignment.
Public propertyVisibility
Gets or sets the visibility.
(Inherited from UIElement.)
Public propertyVisualOffset
Gets or sets the visual offset.
(Inherited from UIElement.)
Public propertyVisualPosition
Gets or sets the position.
(Inherited from UIElement.)
Public propertyWidth
Gets or sets the width.
(Inherited from UIElement.)
Top
Methods
  NameDescription
Public methodAddHandler
Adds the handler.
(Inherited from UIElement.)
Public methodAddToEventRoute
Adds to event route.
(Inherited from UIElement.)
Public methodApplyTemplate
Applies the template.
(Inherited from UIElement.)
Public methodArrange
Arrange layout pass
(Inherited from UIElement.)
Protected methodArrangeOverride
Arrange layout pass - overrider method for children
(Overrides UIElementArrangeOverride(Size).)
Public methodCaptureMouse
Captures the mouse.
(Inherited from UIElement.)
Public methodCaptureTouch
Captures the touch.
(Inherited from UIElement.)
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].
(Inherited from UIElement.)
Public methodDraw
Draws UI Element.
(Inherited from UIElement.)
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.
(Inherited from UIElement.)
Public methodFocus
Focuses this instance.
(Inherited from UIElement.)
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
(Inherited from UIElement.)
Protected methodInvalidateIsEnabledOnChildren
Invalidates the IsEnabled property value on children.
(Overrides UIElementInvalidateIsEnabledOnChildren.)
Public methodInvalidateMeasure
Invalidates the measure pass
(Inherited from UIElement.)
Public methodMeasure
Measures UI control
(Inherited from UIElement.)
Protected methodMeasureOverride
Measure layout pass
(Overrides UIElementMeasureOverride(Size).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnApplyTemplate
Called when [apply template].
(Inherited from UIElement.)
Protected methodOnDraw
Called when [draw].
(Overrides UIElementOnDraw(Renderer, Double, Single).)
Protected methodOnGamepadDown
Raises the [E:GamepadDown] event.
(Inherited from UIElement.)
Protected methodOnGamepadMove
Called when [game pad move].
(Inherited from UIElement.)
Protected methodOnGamepadTrigger
Called when [game pad trigger].
(Inherited from UIElement.)
Protected methodOnGamepadUp
Called when [game pad up].
(Inherited from UIElement.)
Protected methodOnGotFocus
Called when [got focus].
(Inherited from UIElement.)
Protected methodOnIsEnabledChanged
Raises the [E:IsEnabledChanged] event.
(Inherited from UIElement.)
Protected methodOnIsMouseCapturedChanged
Raises the [E:IsMouseCapturedChanged] event.
(Inherited from UIElement.)
Protected methodOnKeyDown
Raises the [E:KeyDown] event.
(Inherited from UIElement.)
Protected methodOnKeyUp
Called when [key up].
(Inherited from UIElement.)
Protected methodOnLostFocus
Called when [lost focus].
(Inherited from UIElement.)
Protected methodOnMouseDoubleClick
Raises the [E:MouseDoubleClick] event.
Protected methodOnMouseDown
Raises the [E:MouseDown] event.
(Inherited from UIElement.)
Protected methodOnMouseEnter
Raises the [E:MouseEnter] event.
(Inherited from UIElement.)
Protected methodOnMouseLeave
Raises the [E:MouseLeave] event.
(Inherited from UIElement.)
Protected methodOnMouseMove
Called when [mouse move].
(Inherited from UIElement.)
Protected methodOnMouseUp
Called when [mouse up].
(Inherited from UIElement.)
Protected methodOnMouseWheel
Called when [mouse wheel].
(Inherited from UIElement.)
Protected methodOnOpacityChanged
Raises the [E:OpacityChanged] event.
(Inherited from UIElement.)
Protected methodOnPreviewGamepadDown
Called when [preview game pad down].
(Inherited from UIElement.)
Protected methodOnPreviewGamepadMove
Called when [preview game pad move].
(Inherited from UIElement.)
Protected methodOnPreviewGamepadTrigger
Called when [preview game pad trigger].
(Inherited from UIElement.)
Protected methodOnPreviewGamepadUp
Called when [preview game pad up].
(Inherited from UIElement.)
Protected methodOnPreviewKeyDown
Called when [preview key down].
(Inherited from UIElement.)
Protected methodOnPreviewKeyUp
Called when [preview key up].
(Inherited from UIElement.)
Protected methodOnPreviewMouseDoubleClick
Raises the [E:PreviewMouseDoubleClick] event.
Protected methodOnPreviewMouseDown
Called when [preview mouse down].
(Inherited from UIElement.)
Protected methodOnPreviewMouseMove
Called when [preview mouse move].
(Inherited from UIElement.)
Protected methodOnPreviewMouseUp
Called when [preview mouse up].
(Inherited from UIElement.)
Protected methodOnPreviewTouchDown
Raises the [E:PreviewTouchDown] event.
(Inherited from UIElement.)
Protected methodOnPreviewTouchGesture
Raises the [E:PreviewTouchGesture] event.
(Inherited from UIElement.)
Protected methodOnPreviewTouchMove
Raises the [E:PreviewTouchMove] event.
(Inherited from UIElement.)
Protected methodOnPreviewTouchUp
Raises the [E:PreviewTouchUp] event.
(Inherited from UIElement.)
Protected methodOnPropertyChanged
Called when [property changed].
(Overrides UIElementOnPropertyChanged(DependencyProperty).)
Protected methodOnTouchDown
Raises the [E:TouchDown] event.
(Inherited from UIElement.)
Protected methodOnTouchGesture
Raises the [E:TouchGesture] event.
(Inherited from UIElement.)
Protected methodOnTouchMove
Raises the [E:TouchMove] event.
(Inherited from UIElement.)
Protected methodOnTouchUp
Raises the [E:TouchUp] event.
(Inherited from UIElement.)
Public methodRaiseEvent
Raises the event.
(Inherited from UIElement.)
Public methodReadLocalValue
Reads the local value.
(Inherited from DependencyObject.)
Public methodReleaseMouseCapture
Releases the mouse capture.
(Inherited from UIElement.)
Public methodReleaseTouchCapture
Releases the touch capture.
(Inherited from UIElement.)
Public methodRemoveHandler
Removes the handler.
(Inherited from UIElement.)
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].
(Inherited from UIElement.)
Public eventDataContextChanged
Occurs when [data context changed].
(Inherited from UIElement.)
Public eventGamepadDown
Occurs when [game pad down].
(Inherited from UIElement.)
Public eventGamepadMove
Occurs when [game pad move].
(Inherited from UIElement.)
Public eventGamepadTrigger
Occurs when [game pad trigger].
(Inherited from UIElement.)
Public eventGamepadUp
Occurs when [game pad up].
(Inherited from UIElement.)
Public eventGotFocus
Occurs when [got focus].
(Inherited from UIElement.)
Public eventHidden
Occurs when [hidden].
(Inherited from UIElement.)
Public eventIsEnabledChanged
Occurs when [is enabled changed].
(Inherited from UIElement.)
Public eventIsMouseCapturedChanged
Occurs when [is mouse captured changed].
(Inherited from UIElement.)
Public eventKeyDown
Occurs when [key down].
(Inherited from UIElement.)
Public eventKeyUp
Occurs when [key up].
(Inherited from UIElement.)
Public eventLayoutUpdated
Occurs when [layout updated].
(Inherited from UIElement.)
Public eventLoaded
Occurs when [loaded].
(Inherited from UIElement.)
Public eventLostFocus
Occurs when [lost focus].
(Inherited from UIElement.)
Public eventMouseDoubleClick
Occurs when [mouse double click].
Public eventMouseDown
Occurs when [mouse down].
(Inherited from UIElement.)
Public eventMouseEnter
Occurs when [mouse enter].
(Inherited from UIElement.)
Public eventMouseLeave
Occurs when [mouse leave].
(Inherited from UIElement.)
Public eventMouseMove
Occurs when [mouse move].
(Inherited from UIElement.)
Public eventMouseUp
Occurs when [mouse up].
(Inherited from UIElement.)
Public eventMouseWheel
Occurs when [mouse wheel].
(Inherited from UIElement.)
Public eventPreviewGamepadDown
Occurs when [preview game pad down].
(Inherited from UIElement.)
Public eventPreviewGamepadMove
Occurs when [preview game pad move].
(Inherited from UIElement.)
Public eventPreviewGamepadTrigger
Occurs when [preview game pad trigger].
(Inherited from UIElement.)
Public eventPreviewGamepadUp
Occurs when [preview game pad up].
(Inherited from UIElement.)
Public eventPreviewKeyDown
Occurs when [preview key down].
(Inherited from UIElement.)
Public eventPreviewKeyUp
Occurs when [preview key up].
(Inherited from UIElement.)
Public eventPreviewMouseDoubleClick
Occurs when [preview mouse double click].
Public eventPreviewMouseDown
Occurs when [preview mouse down].
(Inherited from UIElement.)
Public eventPreviewMouseMove
Occurs when [preview mouse move].
(Inherited from UIElement.)
Public eventPreviewMouseUp
Occurs when [preview mouse up].
(Inherited from UIElement.)
Public eventPreviewMouseWheel
Occurs when [preview mouse wheel].
(Inherited from UIElement.)
Public eventPreviewTouchDown
Occurs when [preview touch down].
(Inherited from UIElement.)
Public eventPreviewTouchGesture
Occurs when [preview touch gesture].
(Inherited from UIElement.)
Public eventPreviewTouchMove
Occurs when [preview touch move].
(Inherited from UIElement.)
Public eventPreviewTouchUp
Occurs when [preview touch up].
(Inherited from UIElement.)
Public eventSizeChanged
Occurs when [size changed].
(Inherited from UIElement.)
Public eventTouchDown
Occurs when [touch down].
(Inherited from UIElement.)
Public eventTouchGesture
Occurs when [touch gesture].
(Inherited from UIElement.)
Public eventTouchMove
Occurs when [touch move].
(Inherited from UIElement.)
Public eventTouchUp
Occurs when [touch up].
(Inherited from UIElement.)
Public eventUnloaded
Occurs when [unloaded].
(Inherited from UIElement.)
Public eventVisible
Occurs when [visible].
(Inherited from UIElement.)
Top
Fields
  NameDescription
Public fieldStatic memberBackgroundProperty
The background dependency property
Public fieldStatic memberBorderBrushProperty
The border brush property
Public fieldStatic memberBorderThicknessProperty
The border thickness property
Protected fielddesiredSize
The desired size
(Inherited from UIElement.)
Public fieldStatic memberFontFamilyProperty
The font family property
Public fieldStatic memberFontProperty
The font property
Public fieldStatic memberFontSizeProperty
The font size property
Public fieldStatic memberFontStyleProperty
The font style property
Public fieldStatic memberForegroundProperty
The foreground dependency property
Public fieldStatic memberHorizontalContentAlignmentProperty
The horizontal content alignment property
Public fieldStatic memberIsTabStopProperty
The is tab stop property
Public fieldStatic memberMouseDoubleClickEvent
The mouse double click event
Protected fieldneedsClipBounds
The needs clip bounds
(Inherited from UIElement.)
Public fieldStatic memberPaddingProperty
The padding dependency property
Public fieldStatic memberPreviewMouseDoubleClickEvent
The preview mouse double click event
Public fieldStatic memberTabIndexProperty
The tab index property
Public fieldStatic memberTemplateProperty
The template property
Protected fieldunclippedDesiredSize
The unclipped desired size
(Inherited from UIElement.)
Public fieldStatic memberVerticalContentAlignmentProperty
The vertical content alignment property
Protected fieldvisualOffset
The visual offset rectangle
(Inherited from UIElement.)
Top
See Also
Inheritance Hierarchy
SystemObject
  EmptyKeys.UserInterfaceDependencyObject
    EmptyKeys.UserInterfaceUIElement
      EmptyKeys.UserInterface.ControlsControl
        EmptyKeys.UserInterface.ChartsChart
        EmptyKeys.UserInterface.ChartsLineSeries2D
        EmptyKeys.UserInterface.ControlsBorder
        EmptyKeys.UserInterface.ControlsContentControl
        EmptyKeys.UserInterface.ControlsDataGridRow
        EmptyKeys.UserInterface.ControlsItemsControl
        EmptyKeys.UserInterface.ControlsPanel
        EmptyKeys.UserInterface.Controls.PrimitivesRangeBase
        EmptyKeys.UserInterface.Controls.PrimitivesTextBoxBase
        EmptyKeys.UserInterface.Controls.PrimitivesThumb
        EmptyKeys.UserInterface.ControlsTextBlock
        EmptyKeys.UserInterface.ControlsVirtualKeyboard