diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2294.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2294.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2294.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2294.cs new file mode 100644 index 00000000..1f8bcf39 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2294.cs @@ -0,0 +1,60 @@ +using System; +using Xamarin.Forms; +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers=true)] + [Issue (IssueTracker.Github, 2294, "Scrolling view causes timer to stop incrementing", PlatformAffected.iOS)] + public class Issue2294 : ContentPage + { + public Issue2294 () + { + var labelUpdatedByTimer = new Label{ }; + var layout = new StackLayout { + Children = { + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + labelUpdatedByTimer, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + new Label {Text = "lots of content to scroll"}, + }, + }; + var scroll = new ScrollView { + Content = layout, + }; + double counter = 0.0; + Device.StartTimer (TimeSpan.FromSeconds (0.02), () => { + counter += 0.02; + labelUpdatedByTimer.Text = counter.ToString(); + return true; + }); + Content = scroll; + } + } +} + + |