Share via


4.129 Control

x:Object > DependencyObject > Visual > UIElement > FrameworkElement > Control, IInputElement

Calendar CalendarItem ContentControl DataGridRow DatePicker DocumentViewerBase FlowDocumentReader FlowDocumentScrollViewer ItemsControl PasswordBox RangeBase ResizeGrip Separator TextBoxBase Thumb

(usage)

<Control />

(description)

Represents the base type for user interface (UI) elements that use a ControlTemplate to define their appearance.

[name property]

Name

[xml lang property]

Language

(properties)

Background

Brush

(description)

A brush that describes the background of a control.

BorderBrush

Brush

(description)

A brush that describes the border background of a control.

BorderThickness

Thickness

(description)

The border thickness of a control.

FontFamily

FontFamily

(description)

The font family of the control.

FontSize

x:Double

(description)

The font size.

[text syntax]

FontSizeSyntax

FontStretch

FontStretch

(description)

The degree to which a font is condensed or expanded on the screen.

FontStyle

FontStyle

(description)

The font style.

FontWeight

FontWeight

(description)

The weight or thickness of the specified font.

Foreground

Brush

(description)

A brush that describes the foreground color.

HorizontalContentAlignment

HorizontalAlignment

(description)

The horizontal alignment of the control's content.

IsTabStop

x:Boolean

(description)

A value that indicates whether a control is included in tab navigation.

Padding

Thickness

(description)

The padding inside a control.

TabIndex

x:Int32

(description)

A value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.

Template

ControlTemplate

(description)

A control template.

VerticalContentAlignment

VerticalAlignment

(description)

The vertical alignment of the control's content.

(events)

MouseDoubleClick

Occurs when a mouse button is clicked two or more times.

PreviewMouseDoubleClick

Occurs when a user clicks the mouse button two or more times.