Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Primitives.TemplatedControlAvalonia.Controls.PrimitivesAvalonia.Controlssrc/Avalonia.Controls/Primitives/TemplatedControl.csControlcontrolpublic static readonly StyledProperty<IBrush?> BackgroundProperty = Border.BackgroundProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<BackgroundSizing> BackgroundSizingProperty = Border.BackgroundSizingProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<IBrush?> BorderBrushProperty = Border.BorderBrushProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<Thickness> BorderThicknessProperty = Border.BorderThicknessProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<CornerRadius> CornerRadiusProperty = Border.CornerRadiusProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<FontFamily> FontFamilyProperty = TextElement.FontFamilyProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<FontFeatureCollection?> FontFeaturesProperty = TextElement.FontFeaturesProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<double> FontSizeProperty = TextElement.FontSizeProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<FontStyle> FontStyleProperty = TextElement.FontStyleProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<FontWeight> FontWeightProperty = TextElement.FontWeightProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<FontStretch> FontStretchProperty = TextElement.FontStretchProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<IBrush?> ForegroundProperty = TextElement.ForegroundProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<Thickness> PaddingProperty = Decorator.PaddingProperty.AddOwner<TemplatedControl>();public static readonly StyledProperty<IControlTemplate?> TemplateProperty = AvaloniaProperty.Register<TemplatedControl, IControlTemplate?>(nameof(Template));public static readonly AttachedProperty<bool> IsTemplateFocusTargetProperty = AvaloniaProperty.RegisterAttached<TemplatedControl, Control, bool>("IsTemplateFocusTarget");public static readonly RoutedEvent<TemplateAppliedEventArgs> TemplateAppliedEvent = RoutedEvent.Register<TemplatedControl, TemplateAppliedEventArgs>( nameof(TemplateApplied), RoutingStrategies.Direct);<TemplatedControl x:Name="SampleTemplatedControl" />
using Avalonia.Controls.Primitives;
var control = new TemplatedControl();