Fix the Styling issue with Custom View.
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / examples / user-alphafunction.cs
index 0605706..5b521b0 100755 (executable)
@@ -46,15 +46,15 @@ namespace MyCSharpExample
     [UnmanagedFunctionPointer(CallingConvention.StdCall)]
     delegate float UserAlphaFunctionDelegate(float progress);
 
-    public void Initialize(object source, AUIApplicationInitEventArgs e)
+    public void Initialize(object source, NUIApplicationInitEventArgs e)
     {
       Log("Initialize() is called!");
       Stage stage = Stage.GetCurrent();
       stage.BackgroundColor = Color.White;
-      stage.TouchEvent += OnStageTouched;
-      stage.TouchEvent += OnStageTouched2;
+      stage.Touch += OnStageTouched;
+      stage.Touch += OnStageTouched2;
       //stage.EventProcessingFinished += OnEventProcessingFinished;
-      stage.WheelEvent += OnStageWheelEvent;
+      stage.Wheel += OnStageWheelEvent;
 
       // Add a _text label to the stage
       _text = new TextLabel("Hello Mono World");
@@ -127,13 +127,13 @@ namespace MyCSharpExample
       _animation = new Animation(10000); // 10000 milli-second of duration
       _animation.StartTime = 5000;
       _animation.EndTime = 10000;
-      _animation.TargetPoperty = "Position";
+      _animation.TargetProperty = "Position";
       _animation.AlphaFunction = new AlphaFunction(_user_alpha_func);
       _animation.Destination = new Vector3(150.0f, 150.0f, 0.0f);
       _animation.AnimateTo(_view2);
       // Connect the signal callback for animaiton finished signal
       _animation.Finished += AnimationFinished;
-      _animation.EndAction = Dali.Constants.Animation.EndAction.Discard;
+      _animation.EndAction = Animation.EndActions.Discard;
       // Play the _animation
       _animation.Play();
     }
@@ -142,7 +142,7 @@ namespace MyCSharpExample
     public void OnStageTouched(object source, Stage.TouchEventArgs e)
     {
       // Only animate the _text label when touch down happens
-      if( e.TouchData.GetState(0) == PointStateType.DOWN )
+      if( e.Touch.GetState(0) == PointStateType.DOWN )
       {
         Log("OnStageTouched() is called! PointStateType.DOWN came!");
         myCount++;
@@ -157,7 +157,7 @@ namespace MyCSharpExample
     // Callback for stage touched signal handling
     public void OnStageTouched2(object source, Stage.TouchEventArgs e)
     {
-      Log("OnStageTouched2() is called!state="+ e.TouchData.GetState(0) );
+      Log("OnStageTouched2() is called!state="+ e.Touch.GetState(0) );
     }
 
     public void OnEventProcessingFinished(object source)