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=4f2667cc13526757cc4bf0911c2aeb72e3c43c29;hp=1daf6a09a40b19945572cb81c9278a571941dea6;hb=665d92f07e3e06e1db65a473c6eb6869dc476c03;hpb=82e6a46b87c64df1be36cf414f6e94f9d17d52ff diff --git a/plugins/dali-sharp/examples/hello-world.cs b/plugins/dali-sharp/examples/hello-world.cs index 1daf6a0..4f2667c 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,9 +38,9 @@ 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.Touch += OnWindowTouched; // Add a _text label to the stage _text = new TextLabel("Hello Mono World"); @@ -49,7 +49,7 @@ namespace MyCSharpExample _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)