- textLabel.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- textLabel.SetName( "helloWorldLabel" );
- stage.Add( textLabel );
+ textLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+ textLabel.SetProperty( Dali::Actor::Property::NAME, "helloWorldLabel" );
+ window.Add( textLabel );
+
+ // Respond to a touch anywhere on the window
+ window.GetRootLayer().TouchedSignal().Connect( this, &HelloWorldController::OnTouch );