// namespace TestNs { partial class MyControl { #nullable enable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty EnabledProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Enabled)); public partial string? Enabled { get => GetValue(EnabledProperty); set => SetValue(EnabledProperty, value); } #nullable restore annotations #nullable disable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty DisabledProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Disabled)); public partial string Disabled { get => GetValue(DisabledProperty); set => SetValue(DisabledProperty, value); } #nullable restore annotations #nullable enable annotations /// /// Defines the property. /// public static readonly global::Avalonia.DirectProperty EnabledAgainProperty = global::Avalonia.AvaloniaProperty.RegisterDirect(nameof(EnabledAgain), static o => o.EnabledAgain, static (o, v) => o.EnabledAgain = v); public partial string EnabledAgain { get => field; set => SetAndRaise(EnabledAgainProperty, ref field, value); } #nullable restore annotations #nullable disable annotations /// /// Defines the DisabledAttached attached property. /// public static readonly global::Avalonia.AttachedProperty DisabledAttachedProperty = global::Avalonia.AvaloniaProperty.RegisterAttached("DisabledAttached"); public static partial string GetDisabledAttached(global::Avalonia.Visual element) => element.GetValue(DisabledAttachedProperty); /// /// Sets the value of the attached property on the specified object. /// public static void SetDisabledAttached(global::Avalonia.Visual element, string value) => element.SetValue(DisabledAttachedProperty, value); #nullable restore annotations } }