summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs
new file mode 100644
index 00000000..6a34cdf7
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25662.cs
@@ -0,0 +1,35 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Text;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls.Issues
+{
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Bugzilla, 25662, "Setting IsEnabled does not disable SwitchCell")]
+ public class Bugzilla25662 : ContentPage
+ {
+ class MySwitch : SwitchCell
+ {
+ public MySwitch ()
+ {
+ IsEnabled = false;
+ }
+ }
+
+
+ public Bugzilla25662 ()
+ {
+ var list = new ListView {
+ ItemsSource = new[] {
+ "One", "Two", "Three"
+ },
+ ItemTemplate = new DataTemplate (typeof (MySwitch))
+ };
+
+ Content = list;
+ Title = "My page";
+
+ }
+ }
+}