This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
554128d
commit 1bb998f
Showing
9 changed files
with
156 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/Platform.Handlers/src/Xamarin.Platform.Handlers/Platform/Android/StepperExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Android.Widget; | ||
using Xamarin.Platform.Handlers; | ||
|
||
namespace Xamarin.Platform | ||
{ | ||
public static class StepperExtensions | ||
{ | ||
public static void UpdateMinimum(this LinearLayout linearLayout, StepperHandler handler, IStepper stepper) | ||
{ | ||
handler.UpdateButtons(); | ||
} | ||
|
||
public static void UpdateMaximum(this LinearLayout linearLayout, StepperHandler handler, IStepper stepper) | ||
{ | ||
handler.UpdateButtons(); | ||
} | ||
|
||
public static void UpdateIncrement(this LinearLayout linearLayout, StepperHandler handler, IStepper stepper) | ||
{ | ||
handler.UpdateButtons(); | ||
} | ||
|
||
public static void UpdateValue(this LinearLayout linearLayout, StepperHandler handler, IStepper stepper) | ||
{ | ||
handler.UpdateButtons(); | ||
} | ||
|
||
public static void UpdateIsEnabled(this LinearLayout linearLayout, StepperHandler handler, IStepper stepper) | ||
{ | ||
ViewHandler.MapIsEnabled(handler, stepper); | ||
handler.UpdateButtons(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Platform.Handlers/src/Xamarin.Platform.Handlers/Platform/Standard/StepperExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Xamarin.Platform | ||
{ | ||
public static class StepperExtensions | ||
{ | ||
public static void UpdateMinimum(this object nothing, object handler, IStepper stepper) | ||
{ | ||
|
||
} | ||
|
||
public static void UpdateMaximum(this object nothing, object handler, IStepper stepper) | ||
{ | ||
|
||
} | ||
|
||
public static void UpdateIncrement(this object nothing, object handler, IStepper stepper) | ||
{ | ||
|
||
} | ||
|
||
public static void UpdateValue(this object nothing, object handler, IStepper stepper) | ||
{ | ||
|
||
} | ||
|
||
public static void UpdateIsEnabled(this object nothing, object handler, IStepper stepper) | ||
{ | ||
|
||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Platform.Handlers/src/Xamarin.Platform.Handlers/Platform/iOS/StepperExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using UIKit; | ||
using Xamarin.Platform.Handlers; | ||
|
||
namespace Xamarin.Platform | ||
{ | ||
public static class StepperExtensions | ||
{ | ||
public static void UpdateMinimum(this UIStepper nativeStepper, StepperHandler handler, IStepper stepper) | ||
{ | ||
nativeStepper.MinimumValue = stepper.Minimum; | ||
} | ||
|
||
public static void UpdateMaximum(this UIStepper nativeStepper, StepperHandler handler, IStepper stepper) | ||
{ | ||
nativeStepper.MaximumValue = stepper.Maximum; | ||
} | ||
|
||
public static void UpdateIncrement(this UIStepper nativeStepper, StepperHandler handler, IStepper stepper) | ||
{ | ||
nativeStepper.StepValue = stepper.Increment; | ||
} | ||
|
||
public static void UpdateValue(this UIStepper nativeStepper, StepperHandler handler, IStepper stepper) | ||
{ | ||
if (nativeStepper.Value != stepper.Value) | ||
nativeStepper.Value = stepper.Value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters