66
77namespace Plugin . InputKit . Shared . Controls
88{
9- public partial class AdvancedSlider : StackLayout , IValidatable
9+ public class AdvancedSlider : StackLayout , IValidatable
1010 {
1111 public static GlobalSetting GlobalSetting { get ; private set ; } = new GlobalSetting
1212 {
@@ -19,11 +19,7 @@ public partial class AdvancedSlider : StackLayout, IValidatable
1919 Label lblValue = new Label { FontSize = GlobalSetting . FontSize , FontFamily = GlobalSetting . FontFamily , InputTransparent = true , TextColor = GlobalSetting . TextColor , } ;
2020 Label lblMinValue = new Label { FontSize = GlobalSetting . FontSize , FontFamily = GlobalSetting . FontFamily , TextColor = GlobalSetting . TextColor , } ;
2121 Label lblMaxValue = new Label { FontSize = GlobalSetting . FontSize , FontFamily = GlobalSetting . FontFamily , TextColor = GlobalSetting . TextColor , } ;
22- private string _valueSuffix ;
23- private string _valuePrefix ;
2422 private Color _textColor ;
25- private string _minValuePrefix ;
26- private string _maxValuePrefix ;
2723
2824 public AdvancedSlider ( )
2925 {
@@ -189,18 +185,19 @@ public Color TextColor
189185 /// It's not available for this control
190186 /// </summary>
191187 public void DisplayValidation ( ) { }
192- void UpdateMinMaxValueText ( )
188+
189+ protected void UpdateMinMaxValueText ( )
193190 {
194191 lblMinValue . Text = $ "{ MinValuePrefix } { this . MinValue } { MinValueSuffix } ";
195192 lblMaxValue . Text = $ "{ MaxValuePrefix } { this . MaxValue } { MaxValueSuffix } ";
196193 }
197194
198- void UpdateValueText ( )
195+ protected void UpdateValueText ( )
199196 {
200197 lblValue . Text = $ "{ this . ValuePrefix } { this . Value } { this . ValueSuffix } ";
201198 }
202199
203- void UpdateView ( )
200+ protected void UpdateView ( )
204201 {
205202 var totalLength = this . MaxValue - this . MinValue ;
206203 var normalizedValue = this . Value - this . MinValue ;
0 commit comments