static int GetContentChildCount(ContentViewHandler contentViewHandler)
 {
     if (contentViewHandler.PlatformView.GetChildAt(0) is LayoutViewGroup childLayoutViewGroup)
     {
         return(childLayoutViewGroup.ChildCount);
     }
     else
     {
         return(0);
     }
 }
Exemple #2
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);
Exemple #5
0
 static int GetChildCount(ContentViewHandler contentViewHandler) =>
 contentViewHandler.PlatformView.Subviews.Length;
Exemple #6
0
 static UIView GetChild(ContentViewHandler contentViewHandler, int index = 0) =>
 contentViewHandler.PlatformView.Subviews[index];
 static int GetChildCount(ContentViewHandler contentViewHandler)
 {
     return(contentViewHandler.PlatformView.ChildCount);
 }
Exemple #8
0
 static UIElement GetChild(ContentViewHandler contentViewHandler, int index = 0) =>
 contentViewHandler.PlatformView.Children[index];
Exemple #9
0
 static int GetChildCount(ContentViewHandler contentViewHandler)
 {
     return(contentViewHandler.PlatformView.Subviews.Length);
 }