2 using System.Collections.Generic;
3 using System.ComponentModel;
5 using Tizen.Applications;
6 using Tizen.Applications.ComponentBased.Common;
12 /// The class for showing UI module
14 /// <since_tizen> 6 </since_tizen>
15 [EditorBrowsable(EditorBrowsableState.Never)]
16 public class NUIFrameComponent : FrameComponent
18 private bool defaultWindowSet = false;
19 internal NUIWindowInfo NUIWindowInfo
25 [EditorBrowsable(EditorBrowsableState.Never)]
33 /// Overrides this method to create window. It will be called before OnCreate method.
35 /// <returns>Window object to use</returns>
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public override IWindowInfo CreateWindowInfo()
39 ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;
42 if (!defaultWindowSet)
44 instance.GetWindow().WindowPositionSize = new Rectangle(0, 0, 1, 1);
45 instance.GetWindow().BackgroundColor = new Color(0, 0, 0, 0);
46 instance.GetWindow().Hide();
47 defaultWindowSet = true;
50 Window = new Window();
53 NUIWindowInfo = new NUIWindowInfo(Window);
58 /// Overrides this method to handle behavior when the component is launched.
60 /// <returns>True if a service component is successfully created</returns>
61 [EditorBrowsable(EditorBrowsableState.Never)]
62 public override bool OnCreate()
68 /// Overrides this method if want to handle behavior when the component receives the appcontrol message.
70 /// <param name="appControl">appcontrol object</param>
71 /// <param name="restarted">True if it was restarted</param>
72 [EditorBrowsable(EditorBrowsableState.Never)]
73 public override void OnStart(AppControl appControl, bool restarted)
75 base.OnStart(appControl, restarted);
79 /// Overrides this method if you want to handle the behavior when the component is resumed.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public override void OnResume()
88 /// Overrides this method if you want to handle the behavior when the component is paused.
90 [EditorBrowsable(EditorBrowsableState.Never)]
91 public override void OnPause()
97 /// Overrides this method if you want to handle the behavior when the component is stopped.
99 [EditorBrowsable(EditorBrowsableState.Never)]
100 public override void OnStop()
106 /// Overrides this method if want to handle behavior when the component is destroyed.
108 [EditorBrowsable(EditorBrowsableState.Never)]
109 public override void OnDestroy()