Beispiel #1
0
 public static void UpdatePadding(this MauiLabel nativeLabel, ILabel label)
 {
     nativeLabel.TextInsets = new UIEdgeInsets(
         (float)label.Padding.Top,
         (float)label.Padding.Left,
         (float)label.Padding.Bottom,
         (float)label.Padding.Right);
 }
Beispiel #2
0
 public static void UpdateBackground(this MauiLabel nativeLabel, ILabel label)
 {
     nativeLabel.BackgroundLayer = label.Background?.ToCALayer();
 }