blob: 8abb04452c5c0f3b5b77acb2eed3ebeb1617ebd5 (
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
|
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 39395, "SwitchCell does not take all available place inside ListView",
PlatformAffected.WinRT)]
public class Bugzilla39395 : TestContentPage
{
protected override void Init ()
{
var instructions = new Label {
FontSize = 18,
Text =
"The switch cells below should be aligned with the right edge of the screen. If they are not, this test has failed."
};
Content = new StackLayout {
BackgroundColor = Color.Gray,
Children = {
instructions,
new ListView {
ItemTemplate = new DataTemplate (typeof(SwitchCell)),
ItemsSource = new[] { "Text", "Text" }
}
}
};
}
}
}
|