'In WPF, when visibility is set to Collapsed, the control will not occupy the original location. How can this be archieve in Avalonia

I want to hide a control in Avalonia, and then the space occupied by this control will be occupied by adjacent controls, just like the visibility.Collapsed in WPF.



Solution 1:[1]

In Avalonia, use the the property IsVisible (boolean)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Whiletrue