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

            if (background == null)
            {
                return;
            }

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

            if (background == null)
            {
                return;
            }

            nativeStepper.ButtonBackground = background.ToNative();
        }
Beispiel #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);
        }
Beispiel #4
0
 public static void UpdateMinimum(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Minimum = stepper.Minimum;
 }
Beispiel #5
0
 public static void UpdateValue(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Value = stepper.Value;
 }
Beispiel #6
0
 public static void UpdateInterval(this MauiStepper nativeStepper, IStepper stepper)
 {
     nativeStepper.Increment = stepper.Interval;
 }
Beispiel #7
0
 public static void UpdateMinimum(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
Beispiel #8
0
 public static void UpdateIsEnabled(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
Beispiel #9
0
 public static void UpdateIncrement(this MauiStepper linearLayout, IStepper stepper)
 {
     UpdateButtons(linearLayout, stepper);
 }
Beispiel #10
0
 public static void UpdateMinimum(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Minimum = stepper.Minimum;
 }
Beispiel #11
0
 public static void UpdateValue(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Value = stepper.Value;
 }
Beispiel #12
0
 public static void UpdateInterval(this MauiStepper platformStepper, IStepper stepper)
 {
     platformStepper.Increment = stepper.Interval;
 }