예제 #1
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);
        }
        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);
        }
예제 #3
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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
 public static void SetPageTabBarItem(this CALayer layer, PageTabBarItem value)
 {
     MaterialObjC.MaterialAssociatedObject(layer.Handle, sPageTabBarItemKey.Handle, value.Handle);
 }
예제 #8
0
 public static void SetDivider(this UIView view, Divider value)
 {
     MaterialObjC.MaterialAssociatedObject(view.Handle, sDividerKey.Handle, value.Handle);
 }
예제 #9
0
 public static void SetNavigationItem(this UINavigationItem view, NavigationItem value)
 {
     MaterialObjC.MaterialAssociatedObject(view.Handle, sMaterialAssociatedObjectNavigationItemKey.Handle, value.Handle);
 }
예제 #10
0
 internal static void SetMaterialLayer(this CALayer layer, MaterialLayer value)
 {
     MaterialObjC.MaterialAssociatedObject(layer.Handle, sMaterialLayerKey.Handle, value.Handle);
 }