summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-03-22 13:02:25 -0700
committerJason Smith <jason.smith@xamarin.com>2016-03-22 16:13:41 -0700
commit17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch)
treeb5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs
downloadxamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip
Initial import
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs
new file mode 100644
index 00000000..eddd1b06
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39624.cs
@@ -0,0 +1,40 @@
+using System.Diagnostics;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Bugzilla, 39624, "CarouselPage.Children Appear Out of Order", PlatformAffected.WinRT)]
+ public class Bugzilla39624 : TestCarouselPage
+ {
+ protected override void Init ()
+ {
+ var instructions =
+ "Flip through each page of the carousel from 1 to 5; the pages should display in order. Then flip backward to page 1; if any of the pages display out of order, the test has failed.";
+
+ Children.Add (GeneratePage ("Page 1", Color.Red, instructions));
+ Children.Add (GeneratePage ("Page 2", Color.Green, instructions));
+ Children.Add (GeneratePage ("Page 3", Color.Blue, instructions));
+ Children.Add (GeneratePage ("Page 4", Color.Purple, instructions));
+ Children.Add (GeneratePage ("Page 5", Color.Black, instructions));
+
+ CurrentPageChanged += (sender, args) => Debug.WriteLine (CurrentPage.Title);
+ }
+
+ ContentPage GeneratePage (string title, Color color, string instructions)
+ {
+ var page = new ContentPage {
+ Content = new StackLayout {
+ Children = {
+ new Label { Text = title, FontSize = 24, TextColor = Color.White },
+ new Label { Text = instructions, TextColor = Color.White }
+ }
+ },
+ BackgroundColor = color,
+ Title = title
+ };
+
+ return page;
+ }
+ }
+} \ No newline at end of file