public void Initialize(object source, NUIApplicationInitEventArgs e)
{
Console.WriteLine("Customized Application Initialize event handler");
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;
// Add a _text label to the stage
_text = new TextLabel("Hello Mono World");
_text.ParentOrigin = ParentOrigin.Center;
- // 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)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.DOWN)