It would be easier with WPF. I'm working with Avalonia because of the cross-platform. It doesn't work with MinWidth and Width either.
How can I remove or disable the scrollbar of this flyout when a control's width is larger than 500?
<DropDownButton>
<TextBlock Text="Test" />
<DropDownButton.Flyout>
<Flyout>
<FlyoutPresenter Background="Red" Height="1000" Width="1000">
</FlyoutPresenter>
</Flyout>
</DropDownButton.Flyout>
</DropDownButton>
It doesn't work with MinWidth and Width either without scrollbar. Height and MinHeight have no problem.
Where can I use attached scrollbar in flyout?
Try this: