Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Presenters.ContentPresenterAvalonia.Controls.PresentersAvalonia.Controlssrc/Avalonia.Controls/Presenters/ContentPresenter.csControlcontrolpublic static readonly StyledProperty<IBrush?> BackgroundProperty = Border.BackgroundProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<BackgroundSizing> BackgroundSizingProperty = Border.BackgroundSizingProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<IBrush?> BorderBrushProperty = Border.BorderBrushProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<Thickness> BorderThicknessProperty = Border.BorderThicknessProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<CornerRadius> CornerRadiusProperty = Border.CornerRadiusProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<BoxShadows> BoxShadowProperty = Border.BoxShadowProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<IBrush?> ForegroundProperty = TextElement.ForegroundProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<FontFamily> FontFamilyProperty = TextElement.FontFamilyProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<double> FontSizeProperty = TextElement.FontSizeProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<FontStyle> FontStyleProperty = TextElement.FontStyleProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<FontWeight> FontWeightProperty = TextElement.FontWeightProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<FontStretch> FontStretchProperty = TextElement.FontStretchProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<TextAlignment> TextAlignmentProperty = TextBlock.TextAlignmentProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<TextWrapping> TextWrappingProperty = TextBlock.TextWrappingProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<TextTrimming> TextTrimmingProperty = TextBlock.TextTrimmingProperty.AddOwner<ContentPresenter>();public static readonly StyledProperty<double> LineHeightProperty = TextBlock.LineHeightProperty.AddOwner<ContentPresenter>();<ContentPresenter x:Name="SampleContentPresenter" />
using Avalonia.Controls.Presenters;
var control = new ContentPresenter();