+ // Get a handle to the window
+ Window window = application.GetWindow();
+ window.SetBackgroundColor( Color::WHITE );
+
+ TextLabel textLabel = TextLabel::New( "Hello World" );
+ 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().TouchSignal().Connect( this, &HelloWorldController::OnTouch );
+
+ // Respond to key events
+ window.KeyEventSignal().Connect( this, &HelloWorldController::OnKeyEvent );