5fb5e6b5678e9495c81052cd40883794c0c6929c
[test/tct/csharp/api.git] /
1 using System;\r
2 using System.Collections.Generic;\r
3 using System.Linq;\r
4 using System.Text;\r
5 \r
6 using Xamarin.Forms;\r
7 \r
8 namespace org.tizen.ApplicationManual\r
9 {\r
10     public class App : Application\r
11     {\r
12         public App()\r
13         {\r
14             Button eButton = new Button\r
15             {
16                 HorizontalOptions = LayoutOptions.Center,
17                 Text = "EXIT",
18                 FontSize = 15,
19                 WidthRequest = 330,
20                 HeightRequest = 80\r
21             };\r
22 \r
23             eButton.Clicked += (sender, e) =>
24             {\r
25                 global::Tizen.Applications.Application.Current.Exit();\r
26             };\r
27             \r
28             // The root page of your application\r
29             MainPage = new ContentPage\r
30             {\r
31                 Content = new StackLayout\r
32                 {\r
33                     VerticalOptions = LayoutOptions.Center,\r
34                     Children = {\r
35                         /*new Label {\r
36                             HorizontalTextAlignment = TextAlignment.Center,\r
37                             Text = "Welcome to Xamarin Forms!"\r
38                         }*/\r
39                         eButton\r
40                     }\r
41                 }                \r
42             };            \r
43         }\r
44 \r
45         protected override void OnStart()\r
46         {\r
47             // Handle when your app starts\r
48         }\r
49 \r
50         protected override void OnSleep()\r
51         {\r
52             // Handle when your app sleeps\r
53         }\r
54 \r
55         protected override void OnResume()\r
56         {\r
57             // Handle when your app resumes\r
58         }\r
59     }\r
60 }\r