// namespace TestNs { partial class MyControl { #nullable enable annotations /// /// Defines the property. /// public static readonly global::Avalonia.DirectProperty TextProperty = global::TestNs.TextBase.TextProperty.AddOwner(static o => o.Text, static (o, v) => o.Text = v); public partial string Text { get => field; set => SetAndRaise(TextProperty, ref field, value); } #nullable restore annotations } }