示例#1
0
 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));
 }
示例#2
0
 public static void SetPadding(this UIView view, EdgeInset padding)
 {
     view.LayoutMargins = new UIEdgeInsets(padding.Left,
                                           padding.Top,
                                           padding.Right,
                                           padding.Bottom);
 }
示例#3
0
 public static UIEdgeInsets AsEdgeInsets(this EdgeInset p)
 {
     return(new UIEdgeInsets(p.Top, p.Left, p.Bottom, p.Right));
 }
示例#4
0
 public static void SetPadding(this IQView <View> view, EdgeInset padding)
 {
     view.PlatformView.SetPadding(padding);
 }