private Dali.Application _application;
private Animation _animation;
private TextLabel _text;
- private Stage _stage;
+ private Window _window;
public Example(Dali.Application application)
{
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
{
}
}
- // 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)