csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.6 KiB
66 lines
2.6 KiB
// <auto-generated />
|
|
|
|
namespace TestNs
|
|
{
|
|
partial class MyControl
|
|
{
|
|
#nullable enable annotations
|
|
/// <summary>
|
|
/// Defines the <see cref="Enabled"/> property.
|
|
/// </summary>
|
|
public static readonly global::Avalonia.StyledProperty<string?> EnabledProperty =
|
|
global::Avalonia.AvaloniaProperty.Register<global::TestNs.MyControl, string?>(nameof(Enabled));
|
|
|
|
public partial string? Enabled
|
|
{
|
|
get => GetValue(EnabledProperty);
|
|
set => SetValue(EnabledProperty, value);
|
|
}
|
|
#nullable restore annotations
|
|
|
|
#nullable disable annotations
|
|
/// <summary>
|
|
/// Defines the <see cref="Disabled"/> property.
|
|
/// </summary>
|
|
public static readonly global::Avalonia.StyledProperty<string> DisabledProperty =
|
|
global::Avalonia.AvaloniaProperty.Register<global::TestNs.MyControl, string>(nameof(Disabled));
|
|
|
|
public partial string Disabled
|
|
{
|
|
get => GetValue(DisabledProperty);
|
|
set => SetValue(DisabledProperty, value);
|
|
}
|
|
#nullable restore annotations
|
|
|
|
#nullable enable annotations
|
|
/// <summary>
|
|
/// Defines the <see cref="EnabledAgain"/> property.
|
|
/// </summary>
|
|
public static readonly global::Avalonia.DirectProperty<global::TestNs.MyControl, string> EnabledAgainProperty =
|
|
global::Avalonia.AvaloniaProperty.RegisterDirect<global::TestNs.MyControl, string>(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
|
|
/// <summary>
|
|
/// Defines the <c>DisabledAttached</c> attached property.
|
|
/// </summary>
|
|
public static readonly global::Avalonia.AttachedProperty<string> DisabledAttachedProperty =
|
|
global::Avalonia.AvaloniaProperty.RegisterAttached<global::TestNs.MyControl, global::Avalonia.Visual, string>("DisabledAttached");
|
|
|
|
public static partial string GetDisabledAttached(global::Avalonia.Visual element)
|
|
=> element.GetValue(DisabledAttachedProperty);
|
|
|
|
/// <summary>
|
|
/// Sets the value of the <see cref="DisabledAttachedProperty"/> attached property on the specified object.
|
|
/// </summary>
|
|
public static void SetDisabledAttached(global::Avalonia.Visual element, string value)
|
|
=> element.SetValue(DisabledAttachedProperty, value);
|
|
#nullable restore annotations
|
|
}
|
|
}
|
|
|