// namespace TestNs { partial class MyControl { #nullable enable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty ValueProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Value), defaultValue: 0, validate: ValidateValue, coerce: CoerceValue); public partial int Value { get => GetValue(ValueProperty); set => SetValue(ValueProperty, value); } #nullable restore annotations } }