Example #1
0
            public SampleViewCell()
            {
                id = s_idSeed++;
                var grid = new Grid {
                    ClassId        = "SampleCard",
                    Padding        = new Thickness(7, 10),
                    RowSpacing     = 0,
                    ColumnSpacing  = 0,
                    RowDefinitions =
                    {
                        new RowDefinition {
                            Height = new GridLength(80, GridUnitType.Absolute)
                        },
                        new RowDefinition {
                            Height = new GridLength(40, GridUnitType.Absolute)
                        },
                    },
                };

                var head = new SampleHeaderView();

                grid.Children.Add(head);

                var foot = new SampleListActionView();

                Grid.SetRow(foot, 1);
                grid.Children.Add(foot);

                View = grid;
            }
Example #2
0
			public SampleViewCell ()
			{
				id = s_idSeed++;
				var grid = new Grid {
					ClassId = "SampleCard",
					Padding = new Thickness (7, 10),
					RowSpacing = 0,
					ColumnSpacing = 0,
					RowDefinitions = {
						new RowDefinition{ Height = new GridLength (80, GridUnitType.Absolute) },	
						new RowDefinition{ Height = new GridLength (40, GridUnitType.Absolute) },	
					},

				};

				var head = new SampleHeaderView ();
				grid.Children.Add (head);

				var foot = new SampleListActionView ();
				Grid.SetRow (foot, 1);
				grid.Children.Add (foot);

				View = grid;
			}