protected override Size MeasurePreferredSize()
 {
     if (!Items.Any())
     {
         return(new Size());
     }
     return(LinearLayout.CalculateTotalSize(Orientation, Items.Select(item => item.GetWinFormsView().LayoutPreferences).ToArray(), GetSpacing()));
 }