Esempio n. 1
0
        public static IEnumerable <SKVisualElement> GetChildrenSKVisualElements(this SKLayout layoutView)
        {
            var childViews = new List <SKVisualElement>();

            foreach (var childView in layoutView.Children)
            {
                if (childView is SKLayout childLayout)
                {
                    childViews.AddRange(childLayout.GetChildrenSKVisualElements());
                }
                else
                {
                    childViews.Add(childView);
                }
            }

            return(childViews);
        }