ScrollViewer.Children doesn't exist.
Shadowblitz16 opened this issue · 1 comments
Shadowblitz16 commented
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().
}
```
cleissonalves commented
ScrollViewer has Content.
new ScrollViewer()
.HorizontalScrollBarVisibility(ScrollBarVisibility.Disabled)
.Content(
new StackPanel()
.Children(
new Label().Content("A"),
new Button().Content("B")
)
);