public static void UpdateBackground(this MauiStepper platformStepper, IStepper stepper) { var background = stepper?.Background; if (background == null) { return; } platformStepper.ButtonBackground = background.ToPlatform(); }
public static void UpdateBackground(this MauiStepper nativeStepper, IStepper stepper) { var background = stepper?.Background; if (background == null) { return; } nativeStepper.ButtonBackground = background.ToNative(); }
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); }
public static void UpdateMinimum(this MauiStepper nativeStepper, IStepper stepper) { nativeStepper.Minimum = stepper.Minimum; }
public static void UpdateValue(this MauiStepper nativeStepper, IStepper stepper) { nativeStepper.Value = stepper.Value; }
public static void UpdateInterval(this MauiStepper nativeStepper, IStepper stepper) { nativeStepper.Increment = stepper.Interval; }
public static void UpdateMinimum(this MauiStepper linearLayout, IStepper stepper) { UpdateButtons(linearLayout, stepper); }
public static void UpdateIsEnabled(this MauiStepper linearLayout, IStepper stepper) { UpdateButtons(linearLayout, stepper); }
public static void UpdateIncrement(this MauiStepper linearLayout, IStepper stepper) { UpdateButtons(linearLayout, stepper); }
public static void UpdateMinimum(this MauiStepper platformStepper, IStepper stepper) { platformStepper.Minimum = stepper.Minimum; }
public static void UpdateValue(this MauiStepper platformStepper, IStepper stepper) { platformStepper.Value = stepper.Value; }
public static void UpdateInterval(this MauiStepper platformStepper, IStepper stepper) { platformStepper.Increment = stepper.Interval; }