summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs62
1 files changed, 0 insertions, 62 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs
deleted file mode 100644
index 24c277de..00000000
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41619.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using Xamarin.Forms.CustomAttributes;
-using Xamarin.Forms.Internals;
-using System.ComponentModel;
-using System.Runtime.CompilerServices;
-
-#if UITEST
-using Xamarin.UITest;
-using NUnit.Framework;
-#endif
-
-namespace Xamarin.Forms.Controls.Issues
-{
- [Preserve(AllMembers = true)]
- [Issue(IssueTracker.Bugzilla, 41619, "[WinRT/UWP] Slider binding works incorrectly", PlatformAffected.WinRT)]
- public class Bugzilla41619 : TestContentPage
- {
- protected override void Init()
- {
- var vm = new Bugzilla41619ViewModel { SliderValue = 5 };
- BindingContext = vm;
- var label = new Label();
- label.SetBinding(Label.TextProperty, "SliderValue");
- var slider = new Slider
- {
- Maximum = 10,
- Minimum = 1,
- };
- slider.SetBinding(Slider.ValueProperty, "SliderValue", BindingMode.TwoWay);
- Content = new StackLayout
- {
- Children =
- {
- label,
- slider,
- new Label { Text = "The initial slider value above should be 5." }
- }
- };
- }
-
- class Bugzilla41619ViewModel : INotifyPropertyChanged
- {
- private double _sliderValue;
-
- public double SliderValue
- {
- get { return _sliderValue; }
- set
- {
- _sliderValue = value;
- OnPropertyChanged();
- }
- }
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-} \ No newline at end of file