Skip to content

Array dict type #2

@wenlino

Description

@wenlino
/// <summary>
/// 子控件集合静态绑定
/// </summary>
public static readonly Avalonia.StyledProperty<Avalonia.Controls.Controls?> ControlsProperty
    = Avalonia.AvaloniaProperty.Register<GroupBox, Avalonia.Controls.Controls?>(nameof(Controls));

/// <summary>
/// 子控件列表
/// </summary>
[Content]
public Avalonia.Controls.Controls Controls
{
    get => GetValue(ControlsProperty) ?? (Controls = []);
    set => SetValue(ControlsProperty, value);
}

This array type start one open ,not no default value。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions