[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Precondition(1, "NA")]
[Step(1, "Click run TC")]
- [Step(2, "Check if dragging slider change the Max value of slider after binding with stepper.")]
+ [Step(2, "Check if dragging slider change the Max value of slider after binding with second slider.")]
[Postcondition(1, "NA")]
public static async Task MaximumProperty_UIBH()
{
_label1.IsVisible = true;
_label2.IsVisible = false;
_label1.Text = "Maximum value is 40 before binding.";
- Stepper stepper2 = new Stepper
+ Slider slider2 = new Slider
{
- Value = 5,
+ Value = 10.00,
Minimum = 0,
Maximum = 10.00,
- Increment = 1.0,
- HorizontalOptions = LayoutOptions.Center,
- VerticalOptions = LayoutOptions.CenterAndExpand,
- WidthRequest = 50
+ HorizontalOptions = LayoutOptions.FillAndExpand,
};
- _slider1.BindingContext = stepper2;
+ _slider1.BindingContext = slider2;
_slider1.SetBinding(Slider.MaximumProperty, "Maximum");
_slider1.ValueChanged += OnValueChangedShowValueMax;
HorizontalOptions = LayoutOptions.FillAndExpand,
Children =
{
- _label1,_slider1,_label2,stepper2
+ _label1,_slider1,_label2,
+ new Label
+ {
+ Text = "Second slider maximum Value is 10",
+ TextColor = Color.Red
+ },
+ slider2
}
},
Title = "Test: Source",
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Precondition(1, "NA")]
[Step(1, "Click run TC")]
- [Step(2, "Check if dragging slider change the Min value of slider after binding with stepper.")]
+ [Step(2, "Check if dragging slider change the Min value of slider after binding with second slider.")]
[Postcondition(1, "NA")]
public static async Task MinimumProperty_UIBH()
{
_label1.IsVisible = true;
_label2.IsVisible = false;
_label1.Text = "Minimum value is 0 before binding.";
- Stepper stepper2 = new Stepper
+ Slider slider3 = new Slider
{
Value = 5,
- Minimum = 3,
+ Minimum = 0,
Maximum = 10.00,
- Increment = 1.0,
- HorizontalOptions = LayoutOptions.Center,
- VerticalOptions = LayoutOptions.CenterAndExpand,
- WidthRequest = 50
+ HorizontalOptions = LayoutOptions.FillAndExpand,
};
+ slider3.Minimum = 3;
- _slider1.BindingContext = stepper2;
+ _slider1.BindingContext = slider3;
_slider1.SetBinding(Slider.MinimumProperty, "Minimum");
_slider1.ValueChanged += OnValueChangedShowValueMin;
HorizontalOptions = LayoutOptions.FillAndExpand,
Children =
{
- _label1,_slider1,_label2,stepper2
+ _label1,_slider1,_label2,
+ new Label
+ {
+ Text = "Second slider minimum Value is 3",
+ TextColor = Color.Red
+ },
+ slider3
}
},
Title = "Test: Source",