Skip to content

ControlMarkupExtensions class

Generated fluent setters and event subscriptions for Control.

Guide: C# Markup guide

public static class ControlMarkupExtensions
name description
static Background<T>(…) Sets the background color.
static BorderBrush<T>(…) Sets the border color.
static BorderThickness<T>(…) Sets the border thickness.
static CornerRadius<T>(…) Sets the corner radius for background/border rendering.
static Padding<T>(…) Sets the inner padding.
static StyleName<T>(…) Sets the named style key, resolved from the nearest StyleSheet up the tree and taking priority over StyleSheet type rules and the theme style.
static Template<T>(…) Sets the template that provides this control’s visual tree; null keeps the control’s own drawn visuals.