X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fexamples%2Fhello-world.cs;h=3fe2192b042af1c704fb1a0e12e5cd5317eb359f;hp=1daf6a09a40b19945572cb81c9278a571941dea6;hb=318378db7fbb0bcfb08c3c603f54857d6f5c9639;hpb=24ea337df1049251ab2e47c556edc6e8458f9c93 diff --git a/plugins/dali-sharp/examples/hello-world.cs b/plugins/dali-sharp/examples/hello-world.cs index 1daf6a0..3fe2192 100755 --- a/plugins/dali-sharp/examples/hello-world.cs +++ b/plugins/dali-sharp/examples/hello-world.cs @@ -27,7 +27,7 @@ namespace MyCSharpExample private Dali.Application _application; private Animation _animation; private TextLabel _text; - private Stage _stage; + private Window _window; public Example(Dali.Application application) { @@ -38,18 +38,18 @@ namespace MyCSharpExample public void Initialize(object source, NUIApplicationInitEventArgs e) { Console.WriteLine("Customized Application Initialize event handler"); - _stage = Stage.Instance; - _stage.BackgroundColor = Color.White; - _stage.Touch += OnStageTouched; + _window = Window.Instance; + _window.BackgroundColor = Color.White; + _window.Touched += OnWindowTouched; // Add a _text label to the stage _text = new TextLabel("Hello Mono World"); _text.ParentOrigin = ParentOrigin.Center; - _text.AnchorPoint = AnchorPoint.Center; + _text.PivotPoint = AnchorPoint.Center; _text.HorizontalAlignment = "CENTER"; _text.PointSize = 32.0f; _text.TextColor = Color.Magenta; - _stage.Add(_text); + _window.Add(_text); _animation = new Animation { @@ -95,8 +95,8 @@ namespace MyCSharpExample } } - // Callback for stage touched signal handling - public void OnStageTouched(object sender, Stage.TouchEventArgs e) + // Callback for window touched signal handling + public void OnWindowTouched(object sender, Window.TouchEventArgs e) { // Only animate the _text label when touch down happens if (e.Touch.GetState(0) == PointStateType.DOWN)