public static void SetPadding(this View view, EdgeInset padding) { view.SetPadding((int)Math.Round(padding.Left), (int)Math.Round(padding.Top), (int)Math.Round(padding.Right), (int)Math.Round(padding.Bottom)); }
public static void SetPadding(this UIView view, EdgeInset padding) { view.LayoutMargins = new UIEdgeInsets(padding.Left, padding.Top, padding.Right, padding.Bottom); }
public static UIEdgeInsets AsEdgeInsets(this EdgeInset p) { return(new UIEdgeInsets(p.Top, p.Left, p.Bottom, p.Right)); }
public static void SetPadding(this IQView <View> view, EdgeInset padding) { view.PlatformView.SetPadding(padding); }