blob: 6a34cdf7a350b0caa61603145c49b4a6177fc661 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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";
}
}
}
|