Merge remote-tracking branch 'origin/master' into tizen
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.ComponentApplication / FrameComponentDll / FrameComponentDll.cs
1 using System;
2 using Tizen.Applications;
3 using Tizen.NUI;
4 using Tizen.NUI.BaseComponents;
5
6 namespace FrameComponentDll
7 {
8
9     public class MyFrameComponent3 : NUIFrameComponent
10     {
11         private TextLabel text;
12
13         public override bool OnCreate()
14         {
15             Tizen.Log.Error("MYLOG", "MyFrameComponent OnCreate");
16
17             Window.BackgroundColor = Color.Yellow;
18             text = new TextLabel("dll Frame");
19             text.HorizontalAlignment = HorizontalAlignment.Center;
20             text.VerticalAlignment = VerticalAlignment.Bottom;
21             text.TextColor = Color.Red;
22             text.PointSize = 30.0f;
23             text.HeightResizePolicy = ResizePolicyType.FillToParent;
24             text.WidthResizePolicy = ResizePolicyType.FillToParent;
25             Window.Add(text);
26             return true;
27         }
28
29
30         public override void OnDestroy()
31         {
32             Tizen.Log.Error("MYLOG", "MyFrameComponent OnDestroy");
33             text.Dispose();
34         }
35
36         public override void OnPause()
37         {
38             Tizen.Log.Error("MYLOG", "MyFrameComponent OnPause");
39         }
40
41         public override void OnResume()
42         {
43             Tizen.Log.Error("MYLOG", "MyFrameComponent OnResume");
44         }
45
46         public override void OnStart(AppControl appControl, bool restarted)
47         {
48             Tizen.Log.Error("MYLOG", "MyFrameComponent OnStart");
49         }
50
51         public override void OnStop()
52         {
53             Tizen.Log.Error("MYLOG", "MyFrameComponent OnStop");
54         }
55
56         public void ChangeSharedText(string strText)
57         {
58             text.Text = strText;
59         }
60
61         static void Main(string[] args)
62         {
63         }
64     }
65 }