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