// namespace TestNs { partial class MyControl { #nullable disable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty HeaderProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Header), validate: ValidateHeader, coerce: CoerceHeader); public partial string Header { get => GetValue(HeaderProperty); set => SetValue(HeaderProperty, value); } #nullable restore annotations } }