ControlProperty


Summary

Represents the Control property enumeration used in Style to get or set a style for a specific property.

Syntax

public sealed enum ControlProperty

Members

NameTypeSummary
BackgroundColor FieldThe background color. Property value can be set using color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".
BorderColor FieldThe border color. Property value can be set using color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".
BorderThickness FieldThe thickness of the border of the control. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".
CaretColor FieldThe caret color. Property value can be set using color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".
CornerRadius FieldThe radius of the corner of the control. Property value can be set using CornerRadius, number, or a string: new CornerRadius(5), new CornerRadius(1, 2, 3, 4).
FontFamily FieldThe font family.
FontSize FieldThe font size.
FontStyle FieldThe content font style. Property value can be set using the FontStyle enumeration: FontWeight.Italic or FontWeight.Oblique.
FontWeight FieldThe content font weight. Property value can be set using the FontWeight enumerations: FontWeight.Bold, FontWeight.SemiBold, FontWeight.Light, FontWeight.Thin, etc.
ForegroundColor FieldThe foreground color. Property value can be set using color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".
Height FieldThe height of the control.
HorizontalContentAlignment FieldThe horizontal content alignment.
Margin FieldThe margin of the content. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".
MaxHeight FieldThe maximum hight of the control.
MaxWidth FieldThe maximum width of the control.
MinHeight FieldThe minimum hight of the control.
MinWidth FieldThe minimum width of the control.
Opacity FieldThe opacity of the control. Can be set from 0 (transparent) to 1 (opaque). Values higher than 1 will be set to 1, values below 0 will be set to 0.
Padding FieldThe padding of the control. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".
TextAlignment FieldThe alignment of the content.
VerticalContentAlignment FieldThe vertical content alignment.
Width FieldThe width of the control.
Reference