public void Initialize(object source, NUIApplicationInitEventArgs e)
{
- Stage stage = Stage.Instance;
- stage.BackgroundColor = Color.White;
+ Window window = Window.Instance;
+ window.BackgroundColor = Color.White;
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);
- stage.GetDefaultLayer().Add(contentLayout);
+ window.GetDefaultLayer().Add(contentLayout);
_title = new TextLabel("Visuals Example");
_title.Name = "Title";
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);
contentLayout.Add(imageView);
// Primitive Visual example