Control class
Base class for all controls.
Guide: C# Markup reference: Element
public abstract class Control : TextElement, IVisualTreeHostPublic Members
Section titled “Public Members”| name | description |
|---|---|
| Background { get; set; } | Gets or sets the background color. |
| BorderBrush { get; set; } | Gets or sets the border color. |
| BorderThickness { get; set; } | Gets or sets the border thickness. |
| CornerRadius { get; set; } | Gets or sets the corner radius for background/border rendering. |
| HasValidationError { get; } | Gets whether any binding on this control currently has an error. |
| IsPressed { get; } | Gets whether the control is currently pressed. |
| Padding { get; set; } | Gets or sets the inner padding. |
| StyleName { get; set; } | Gets or sets the named style key, resolved from the nearest StyleSheet up the tree and taking priority over StyleSheet type rules and the theme style. |
| Template { get; set; } | Gets or sets the template that provides this control’s visual tree; null keeps the control’s own drawn visuals. |
| ValidationErrors { get; } | Gets an immutable snapshot of the current per-property binding errors on this control. |
| static readonly BackgroundProperty | The background color. |
| static readonly BorderBrushProperty | The border color. |
| static readonly BorderThicknessProperty | The border thickness. |
| static readonly CornerRadiusProperty | Corner radius for background/border rendering. |
| static readonly HasValidationErrorProperty | Gets whether any binding on this control currently has a validation error. |
| static readonly IsPressedProperty | Whether this control is currently in the pressed state. Read-only; set internally via Boolean). Participates in style triggers. |
| static readonly PaddingProperty | The inner padding. |
| static readonly TemplateProperty | The template whose built tree replaces the control’s own visuals. |
| static readonly ValidationErrorsProperty | Gets an immutable snapshot of the current per-property binding validation errors on this control. |
See Also
Section titled “See Also”- class TextElement
- interface IVisualTreeHost
- namespace Aprillz.MewUI.Controls