summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs
new file mode 100644
index 00000000..8abb0445
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39395.cs
@@ -0,0 +1,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" }
+ }
+ }
+ };
+ }
+ }
+} \ No newline at end of file