public static PageTabBarItem PageTabBarItem(this UIViewController viewController)
        {
            var v = MaterialObjC.AssociatedObject(viewController.Handle, sPageTabBarItemKey.Handle, () =>
            {
                return(new PageTabBarItem().Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as PageTabBarItem);
        }
Esempio n. 2
0
        public static Divider Divider(this UIView view)
        {
            var v = MaterialObjC.AssociatedObject(view.Handle, sDividerKey.Handle, () =>
            {
                return(new Divider(view).Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as Divider);
        }
Esempio n. 3
0
        public static Grid Grid(this UIView view)
        {
            var v = MaterialObjC.AssociatedObject(view.Handle, sGridKey.Handle, () =>
            {
                return(new Grid(view).Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as Grid);
        }
Esempio n. 4
0
        public static Layout Layout(this UIView view)
        {
            var v = MaterialObjC.AssociatedObject(view.Handle, sLayoutKey.Handle, () =>
            {
                return(new Layout(view).Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as Layout);
        }
Esempio n. 5
0
        public static NavigationItem NavigationItem(this UINavigationItem view)
        {
            var v = MaterialObjC.AssociatedObject(view.Handle, sMaterialAssociatedObjectNavigationItemKey.Handle, () =>
            {
                return(new NavigationItem().Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as NavigationItem);
        }
Esempio n. 6
0
        internal static MaterialLayer MaterialLayer(this CALayer layer)
        {
            var v = MaterialObjC.AssociatedObject(layer.Handle, sMaterialLayerKey.Handle, () =>
            {
                return(new MaterialLayer(layer).Handle);
            });

            return(ObjCRuntime.Runtime.GetNSObject(v) as MaterialLayer);
        }