AvaloniaUI/Avalonia.Markup.Declarative

ScrollViewer.Children doesn't exist.

Shadowblitz16 opened this issue · 1 comments

using Avalonia.Controls;

namespace MarioKit;
using Avalonia.Markup.Declarative;
public class MainView : ViewBase<MainViewModel>
{
    public MainView(MainViewModel viewModel) : base(viewModel)
    {
    }

    protected override object Build(MainViewModel? vm) =>
        new Grid().Rows("Auto, *, Auto").Children(
            new ScrollViewer().
}
```

ScrollViewer has Content.

new ScrollViewer()
    .HorizontalScrollBarVisibility(ScrollBarVisibility.Disabled)
    .Content(
        new StackPanel()
            .Children(
                new Label().Content("A"),
                new Button().Content("B")
            )
    );