X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fhello-world.cs;h=df298ccadab2feb16bb10d9df10903e8c559f557;hp=7853ce3dbaba1f4f28e386450f739a3b431ffaed;hb=1c79fd0c77d266314b74e32ab8a0070fb5178380;hpb=928f30d2caf2775c5bcbfd84ceb4bf37ca29f020 diff --git a/plugins/dali-swig/examples/hello-world.cs b/plugins/dali-swig/examples/hello-world.cs index 7853ce3..df298cc 100755 --- a/plugins/dali-swig/examples/hello-world.cs +++ b/plugins/dali-swig/examples/hello-world.cs @@ -18,6 +18,7 @@ using System; using System.Runtime.InteropServices; using Dali; +using Dali.CSharp; namespace MyCSharpExample { @@ -38,14 +39,14 @@ namespace MyCSharpExample { Console.WriteLine("Customized Application Initialize event handler"); Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = new Color("white"); + stage.BackgroundColor = new Dali.CSharp.Color(Dali.CSharp.Colors.Red); - stage.Touched += OnStageTouched; + stage.Touched += OnStageTouched; // Add a _text label to the stage _text = new TextLabel("Hello Mono World"); - _text.ParentOrigin = NDalic.ParentOriginCenter; - _text.AnchorPoint = NDalic.AnchorPointCenter; + _text.ParentOrigin = new Position(NDalic.ParentOriginCenter); + _text.AnchorPoint = new Position(NDalic.AnchorPointCenter); _text.HorizontalAlignment = "CENTER"; _text.PointSize = 32.0f;