1 // Copyright 2016 by Samsung Electronics, Inc.,
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
11 //------------------------------------------------------------------------------
12 // <manual-generated />
14 // This file can only run on Tizen target. You should compile it with hello-test.cs, and
15 // add tizen c# application related library as reference.
16 //------------------------------------------------------------------------------
17 namespace Tizen.Applications
20 /// Represents an application that have UI screen. The DaliApplication class has a default stage.
22 public class DaliApplication : CoreUIApplication
25 /// The instance of the Dali Application.
28 /// This application is created before OnCreate() or created event. And the DaliApplication will be terminated when this application is closed.
30 protected Dali.Application application;
31 protected Dali.ApplicationExtensions applicationExt;
34 /// The instance of the Dali Stage.
36 public Stage stage { get; private set; }
40 /// Overrides this method if want to handle behavior before calling OnCreate().
41 /// stage property is initialized in this overrided method.
43 protected override void OnPreCreate()
45 application = Dali.Application.NewApplication();
46 applicationExt = new Dali::ApplicationExtensions(application);
47 applicationExt.Init();
49 stage = Stage.GetCurrent();
50 stage.SetBackgroundColor( NDalic.WHITE );
54 /// Overrides this method if want to handle behavior.
56 protected override void OnTerminate()
59 applicationExt.Terminate();
63 /// Overrides this method if want to handle behavior.
65 protected override void OnPause()
68 applicationExt.Pause();
72 /// Overrides this method if want to handle behavior.
74 protected override void OnResume()
77 applicationExt.Resume();
81 /// Overrides this method if want to handle behavior.
83 protected override void OnLocaleChanged(LocaleChangedEventArgs e)
85 base.OnLocaleChanged(e);
86 applicationExt.LanguageChange();