Exemplo n.º 1
0
        public void LayoutChildren()
        {
            var bounds = LinearLayout.CalculateBounds(
                Orientation,
                ActualBounds.Value.Size,
                ContentLayoutPreferences,
                Items.Select(i => i.GetWinFormsView().LayoutPreferences).ToArray(), GetSpacing()).GetEnumerator();

            foreach (var item in Items.Select(i => i.GetWinFormsView()))
            {
                bounds.MoveNext();
                item.ActualBounds.Value = bounds.Current;
            }
        }