summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1236.cs
blob: 9198542550168a07e4e387c7702c3bac00d6b368 (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
using System;
using System.Threading.Tasks;

using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

namespace Xamarin.Forms.Controls
{
	[Preserve (AllMembers=true)]
	[Issue (IssueTracker.Github, 1236, "Label binding", PlatformAffected.iOS)]
	public class Issue1236 : ContentPage
	{
		public Issue1236 ()
		{
			Content = new Label { HeightRequest = 30, WidthRequest = 200, BackgroundColor = Color.Purple.WithLuminosity (.7) };
			Content.SetBinding (Label.TextProperty, ".");

			DelayUpdatingBindingContext ();
		}

		async void DelayUpdatingBindingContext ()
		{
			await Task.Delay (2000);
			BindingContext = "Lorem Ipsum Dolor Sit Amet";
		}
	}
}