示例#1
0
        public static void UpdateBackground(this MauiStepper platformStepper, IStepper stepper)
        {
            var background = stepper?.Background;

            if (background == null)
            {
                return;
            }

            platformStepper.ButtonBackground = background.ToPlatform();
        }
示例#2
0
        public static void UpdateBackground(this MauiStepper nativeStepper, IStepper stepper)
        {
            var background = stepper?.Background;

            if (background == null)
            {
                return;
            }

            nativeStepper.ButtonBackground = background.ToNative();
        }
示例#3
0
        internal static void UpdateButtons(this MauiStepper linearLayout, IStepper stepper)
        {
            AButton?downButton = null;
            AButton?upButton   = null;

            for (int i = 0; i < linearLayout?.ChildCount; i++)
            {
                var childButton = linearLayout.GetChildAt(i) as AButton;

                if (childButton?.Text == "-")
                {
                    downButton = childButton;
                }

                if (childButton?.Text == "+")
                {
                    upButton = childButton;
                }
            }

            StepperHandlerManager.UpdateButtons(stepper, downButton, upButton);
        }
示例#4
0
 public static void UpdateMinimum(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Minimum = stepper.Minimum;
 }
示例#5
0
 public static void UpdateValue(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Value = stepper.Value;
 }
示例#6
0
 public static void UpdateInterval(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Increment = stepper.Interval;
 }
示例#7
0
 public static void UpdateMinimum(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
示例#8
0
 public static void UpdateIsEnabled(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
示例#9
0
 public static void UpdateIncrement(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
示例#10
0
 public static void UpdateMinimum(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Minimum = stepper.Minimum;
 }
示例#11
0
 public static void UpdateValue(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Value = stepper.Value;
 }
示例#12
0
 public static void UpdateInterval(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Increment = stepper.Interval;
 }