// namespace TestNs { partial class MyControl { #nullable disable 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 #nullable disable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty WidthProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Width)); public partial int Width { get => GetValue(WidthProperty); set => SetValue(WidthProperty, value); } #nullable restore annotations } }