public static void MapTextColor(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
        {
            var color = view.GetTextColor();

            if (color != null)
            {
                handler.PlatformView.SetTitleColor(color.ToPlatform(), UIControlState.Normal);
            }
        }
        public static void MapVisibility(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
        {
            var swipeView = handler.PlatformView.GetParentOfType <MauiSwipeView>();

            if (swipeView != null)
            {
                swipeView.UpdateIsVisibleSwipeItem(view);
            }

            handler.PlatformView.UpdateVisibility(view.Visibility);
        }
        public static void MapBackground(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
        {
            handler.PlatformView.UpdateBackground(handler.VirtualView.Background);

            var textColor = handler.VirtualView.GetTextColor()?.ToPlatform();

            if (handler.PlatformView is TextView textView)
            {
                if (textColor != null)
                {
                    textView.SetTextColor(textColor.Value);
                }

                textView.TextAlignment = ATextAlignment.Center;
            }
        }
 public static void MapBackground(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view) =>
 handler.PlatformView.UpdateBackground(view.Background);
 public static void MapText(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
     handler.PlatformView.Text = view.Text;
 }
 public static void MapFont(SwipeItemMenuItemHandler handler, ITextStyle view)
 {
 }
 public static void MapCharacterSpacing(SwipeItemMenuItemHandler handler, ITextStyle view)
 {
 }
 public static void MapTextColor(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view) =>
 handler.PlatformView.UpdateTextColor(view);
 public static void MapCharacterSpacing(SwipeItemMenuItemHandler handler, ITextStyle view)
 {
     (handler.PlatformView as TextView)?.UpdateCharacterSpacing(view);
 }
Example #10
0
 public static void MapBackground(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
 }
Example #11
0
 public static void MapText(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
 }
Example #12
0
 public static void MapTextColor(SwipeItemMenuItemHandler handler, ITextStyle view)
 {
 }
        public static void MapText(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
        {
            (handler.PlatformView as TextView)?.UpdateTextPlainText(view);

            handler.UpdateSize();
        }
        public static void MapFont(SwipeItemMenuItemHandler handler, ITextStyle view)
        {
            var fontManager = handler.GetRequiredService <IFontManager>();

            (handler.PlatformView as TextView)?.UpdateFont(view, fontManager);
        }
 public static void MapVisibility(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
 }
 public static void MapText(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
     handler.PlatformView.RestorationIdentifier = view.Text;
     handler.PlatformView.SetTitle(view.Text, UIControlState.Normal);
 }
 public static void MapSource(SwipeItemMenuItemHandler handler, ISwipeItemMenuItem view)
 {
     handler.PlatformView.IconSource = view.Source?.ToIconSource(handler.MauiContext !);
 }
 public static void MapTextColor(SwipeItemMenuItemHandler handler, ITextStyle view)
 {
     (handler.PlatformView as TextView)?.UpdateTextColor(view);
 }