-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathButtonSample.cs
More file actions
executable file
·35 lines (30 loc) · 971 Bytes
/
ButtonSample.cs
File metadata and controls
executable file
·35 lines (30 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components;
namespace ButtonSample
{
class Program : NUIApplication
{
protected override void OnCreate()
{
base.OnCreate();
// NOTE To use theme.xaml, uncomment below line.
// ThemeManager.ApplyTheme(new Theme(Tizen.Applications.Application.Current.DirectoryInfo.Resource + "theme/theme.xaml"));
XamlPage page = new XamlPage();
Window.Instance.Add(page);
}
public void OnKeyEvent(object sender, Window.KeyEventArgs e)
{
if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))
{
Exit();
}
}
static void Main(string[] args)
{
var app = new Program();
app.Run(args);
}
}
}