Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.BorderAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/Border.csDecorator, IVisualWithRoundRectClipcontrolpublic static readonly StyledProperty<IBrush?> BackgroundProperty = AvaloniaProperty.Register<Border, IBrush?>(nameof(Background));public static readonly StyledProperty<BackgroundSizing> BackgroundSizingProperty = AvaloniaProperty.Register<Border, BackgroundSizing>( nameof(BackgroundSizing), BackgroundSizing.CenterBorder);public static readonly StyledProperty<IBrush?> BorderBrushProperty = AvaloniaProperty.Register<Border, IBrush?>(nameof(BorderBrush));public static readonly StyledProperty<Thickness> BorderThicknessProperty = AvaloniaProperty.Register<Border, Thickness>(nameof(BorderThickness));public static readonly StyledProperty<CornerRadius> CornerRadiusProperty = AvaloniaProperty.Register<Border, CornerRadius>(nameof(CornerRadius));public static readonly StyledProperty<BoxShadows> BoxShadowProperty = AvaloniaProperty.Register<Border, BoxShadows>(nameof(BoxShadow));public IBrush? Background {public BackgroundSizing BackgroundSizing {public IBrush? BorderBrush {public Thickness BorderThickness {public CornerRadius CornerRadius {public BoxShadows BoxShadow {public sealed override void Render(DrawingContext context) {public CornerRadius ClipToBoundsRadius => CornerRadius;<Border x:Name="SampleBorder" />
using Avalonia.Controls;
var control = new Border();