TableView contentLayout = new TableView(4, 1);
contentLayout.Name = ("ContentLayout");
TableView contentLayout = new TableView(4, 1);
contentLayout.Name = ("ContentLayout");
contentLayout.SetCellPadding(new Size2D(0, 5));
contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
contentLayout.SetCellPadding(new Size2D(0, 5));
contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
imageVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Image ))
.Add( ImageVisualProperty.URL, new Property.Value( "./images/gallery-0.jpg" ));
imageView.Background = imageVisual;
imageVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Image ))
.Add( ImageVisualProperty.URL, new Property.Value( "./images/gallery-0.jpg" ));
imageView.Background = imageVisual;
- contentLayout.SetCellAlignment(new TableView.CellPosition(2, 0), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER);
+ contentLayout.SetCellAlignment(new TableView.CellPosition(2, 0), HorizontalAlignmentType.Center, VerticalAlignmentType.CENTER);