summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla31967.xaml.cs
blob: d4e9799670c110d9744e614ad994aab6eb6df220 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;

using Xamarin.Forms.CustomAttributes;

using Xamarin.Forms;
using System.ComponentModel;
using Xamarin.Forms.Internals;

namespace Xamarin.Forms.Controls
{
#if APP
	[Preserve (AllMembers = true)]
	[Issue (IssueTracker.Bugzilla, 31967, "Grid Layout on Bound RowDefinition")]
	public partial class Bugzilla31967 : ContentPage
	{
		public Bugzilla31967 ()
		{
			InitializeComponent ();
			BindingContext = new Bugzilla31967Vm ();
		}

		public class Bugzilla31967Vm: INotifyPropertyChanged {
			public Command Fire {
				get { return new Command (() => ToolbarHeight = 50); }
			}

			GridLength _toolbarHeight;
			public GridLength ToolbarHeight {
				get { return _toolbarHeight; }
				set {
					_toolbarHeight = value;
					OnPropertyChanged ("ToolbarHeight");
				}
			}

			protected void OnPropertyChanged (string propertyName)
			{
				var handler = PropertyChanged;
				if (handler != null)
					handler (this, new PropertyChangedEventArgs (propertyName));
			}

			public event PropertyChangedEventHandler PropertyChanged;
		}
	}
#endif
}