[NUI] integration from DevelNUI to master (#3309)
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / Examples / ButtontTest1 / ButtonTest1.cs
1 using System;
2 using Tizen.NUI;
3
4 namespace NUITizenGallery
5 {
6     internal class ButtonTest1 : IExample
7     {
8         private Window window;
9         private ButtonTest1Page page;
10         public void Activate()
11         {
12             Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
13
14             window = NUIApplication.GetDefaultWindow();
15             page = new ButtonTest1Page();
16             page.PositionUsesPivotPoint = true;
17             page.ParentOrigin = ParentOrigin.Center;
18             page.PivotPoint = PivotPoint.Center;
19             page.HeightResizePolicy = ResizePolicyType.FillToParent;
20             page.WidthResizePolicy = ResizePolicyType.FillToParent;
21             window.Add(page);
22         }
23
24         public void Deactivate()
25         {
26             Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
27             page.Unparent();
28             page.Dispose();
29         }
30     }
31 }