X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fexamples%2Fvisuals-example.cs;h=7bdb14b02f3c61a47892eadb5998b55602beaad9;hp=51c57d9ca09c609d34f8b8f92667f6ca04711727;hb=fb390b3f5e576e2fc11b3755f4dc9c3ff2150d90;hpb=24ea337df1049251ab2e47c556edc6e8458f9c93 diff --git a/plugins/dali-sharp/examples/visuals-example.cs b/plugins/dali-sharp/examples/visuals-example.cs index 51c57d9..7bdb14b 100755 --- a/plugins/dali-sharp/examples/visuals-example.cs +++ b/plugins/dali-sharp/examples/visuals-example.cs @@ -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