예제 #1
0
파일: QView.cs 프로젝트: tretikoff/Qoden.UI
 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);
 }