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