Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / examples / visuals-example.cs
index 51c57d9..7bdb14b 100755 (executable)
@@ -34,8 +34,8 @@ namespace MyCSharpExample
 
         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");
@@ -44,7 +44,7 @@ namespace MyCSharpExample
             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";
@@ -74,7 +74,7 @@ namespace MyCSharpExample
             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