summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs
new file mode 100644
index 00000000..0497c519
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1538.cs
@@ -0,0 +1,28 @@
+´╗┐using System;
+using System.Threading.Tasks;
+
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 1538, "Crash measuring empty ScrollView", PlatformAffected.Android | PlatformAffected.WinPhone)]
+ public class Issue1538 : ContentPage
+ {
+ ScrollView _sv;
+ public Issue1538 ()
+ {
+ StackLayout sl = new StackLayout(){VerticalOptions = LayoutOptions.FillAndExpand};
+ sl.Children.Add( _sv = new ScrollView(){HeightRequest=100} );
+ Content = sl;
+
+ AddContentDelayed ();
+ }
+
+ async void AddContentDelayed ()
+ {
+ await Task.Delay (1000);
+ _sv.Content = new Label { Text = "Foo" };
+ }
+ }
+} \ No newline at end of file