//
namespace TestNs
{
partial class MyControl
{
#nullable enable annotations
///
/// Defines the property.
///
public static readonly global::Avalonia.StyledProperty FirstProperty =
global::Avalonia.AvaloniaProperty.Register(nameof(First));
public partial bool First
{
get => GetValue(FirstProperty);
set => SetValue(FirstProperty, value);
}
#nullable restore annotations
#nullable enable annotations
///
/// Defines the property.
///
public static readonly global::Avalonia.StyledProperty SecondProperty =
global::Avalonia.AvaloniaProperty.Register(nameof(Second));
public partial bool Second
{
get => GetValue(SecondProperty);
set => SetValue(SecondProperty, value);
}
#nullable restore annotations
#nullable enable annotations
///
/// Defines the property.
///
public static readonly global::Avalonia.DirectProperty TextProperty =
global::Avalonia.AvaloniaProperty.RegisterDirect(nameof(Text), static o => o.Text, static (o, v) => o.Text = v);
public partial string Text
{
get => field;
set => SetAndRaise(TextProperty, ref field, value);
}
#nullable restore annotations
#nullable enable annotations
///
/// Defines the Order attached property.
///
public static readonly global::Avalonia.AttachedProperty OrderProperty =
global::Avalonia.AvaloniaProperty.RegisterAttached("Order");
public static partial int GetOrder(global::Avalonia.Visual element)
=> element.GetValue(OrderProperty);
///
/// Sets the value of the attached property on the specified object.
///
public static void SetOrder(global::Avalonia.Visual element, int value)
=> element.SetValue(OrderProperty, value);
#nullable restore annotations
}
}