public NativeViewWrapper(UIView nativeView, GetDesiredSizeDelegate getDesiredSizeDelegate = null, SizeThatFitsDelegate sizeThatFitsDelegate = null, LayoutSubviewsDelegate layoutSubViews = null)
 {
     GetDesiredSizeDelegate = getDesiredSizeDelegate;
     SizeThatFitsDelegate   = sizeThatFitsDelegate;
     LayoutSubViews         = layoutSubViews;
     NativeView             = nativeView;
 }
        public NativeViewWrapper(UIView nativeView, GetDesiredSizeDelegate getDesiredSizeDelegate = null, SizeThatFitsDelegate sizeThatFitsDelegate = null, LayoutSubviewsDelegate layoutSubViews = null)
        {
            GetDesiredSizeDelegate = getDesiredSizeDelegate;
            SizeThatFitsDelegate   = sizeThatFitsDelegate;
            LayoutSubViews         = layoutSubViews;
            NativeView             = nativeView;

            nativeView.TransferbindablePropertiesToWrapper(this);
        }
Beispiel #3
0
 public static View ToView(this UIView view, GetDesiredSizeDelegate getDesiredSizeDelegate = null,
                           SizeThatFitsDelegate sizeThatFitsDelegate = null, LayoutSubviewsDelegate layoutSubViews = null)
 {
     return(new NativeViewWrapper(view, getDesiredSizeDelegate, sizeThatFitsDelegate, layoutSubViews));
 }
Beispiel #4
0
 public static void Add(this IList <View> children, UIView view, GetDesiredSizeDelegate getDesiredSizeDelegate = null,
                        SizeThatFitsDelegate sizeThatFitsDelegate = null,
                        LayoutSubviewsDelegate layoutSubViews     = null)
 {
     children.Add(view.ToView(getDesiredSizeDelegate, sizeThatFitsDelegate, layoutSubViews));
 }
		public static View ToView(this UIView view, GetDesiredSizeDelegate getDesiredSizeDelegate = null, SizeThatFitsDelegate sizeThatFitsDelegate = null, LayoutSubviewsDelegate layoutSubViews = null)
		{
			return new NativeViewWrapper(view, getDesiredSizeDelegate, sizeThatFitsDelegate, layoutSubViews);
		}
		public static void Add(this IList<View> children, UIView view, GetDesiredSizeDelegate getDesiredSizeDelegate = null, SizeThatFitsDelegate sizeThatFitsDelegate = null,
							   LayoutSubviewsDelegate layoutSubViews = null)
		{
			children.Add(view.ToView(getDesiredSizeDelegate, sizeThatFitsDelegate, layoutSubViews));
		}