2 using System.Collections.Generic;
\r
8 namespace EventListener
\r
10 public class App : Application
\r
12 public interface IAppEvent
\r
14 void OnButtonPressed();
\r
16 public IAppEvent AppEvent { get; set; }
\r
21 Button eButton = new Button
\r
23 HorizontalOptions = LayoutOptions.Center,
\r
30 eButton.Clicked += (sender, e) =>
\r
32 AppEvent?.OnButtonPressed();
\r
35 // The root page of your application
\r
36 MainPage = new ContentPage
\r
38 Content = new StackLayout
\r
40 VerticalOptions = LayoutOptions.Center,
\r
43 HorizontalTextAlignment = TextAlignment.Center,
\r
44 Text = "org.tizen.example.EventListener.Tizen"
\r
52 protected override void OnStart()
\r
54 // Handle when your app starts
\r
57 protected override void OnSleep()
\r
59 // Handle when your app sleeps
\r
62 protected override void OnResume()
\r
64 // Handle when your app resumes
\r