static int GetContentChildCount(ContentViewHandler contentViewHandler) { if (contentViewHandler.PlatformView.GetChildAt(0) is LayoutViewGroup childLayoutViewGroup) { return(childLayoutViewGroup.ChildCount); } else { return(0); } }
static int GetContentChildCount(ContentViewHandler contentViewHandler) { if (contentViewHandler.PlatformView.Children[0] is LayoutPanel childLayoutPanel) { return(childLayoutPanel.Children.Count); } else { return(0); } }
static int GetChildCount(ContentViewHandler contentViewHandler) => contentViewHandler.PlatformView.ChildCount;
static View GetChild(ContentViewHandler contentViewHandler, int index = 0) => contentViewHandler.PlatformView.GetChildAt(index);
static int GetChildCount(ContentViewHandler contentViewHandler) => contentViewHandler.PlatformView.Subviews.Length;
static UIView GetChild(ContentViewHandler contentViewHandler, int index = 0) => contentViewHandler.PlatformView.Subviews[index];
static int GetChildCount(ContentViewHandler contentViewHandler) { return(contentViewHandler.PlatformView.ChildCount); }
static UIElement GetChild(ContentViewHandler contentViewHandler, int index = 0) => contentViewHandler.PlatformView.Children[index];
static int GetChildCount(ContentViewHandler contentViewHandler) { return(contentViewHandler.PlatformView.Subviews.Length); }