3 using System.Reflection;
5 using Tizen.NUI.Binding;
8 //using System.ComponentModel;
10 namespace Tizen.NUI.Examples
13 // class MyAppViewModel : INotifyPropertyChanged
16 // public event PropertyChangedEventHandler PropertyChanged;
17 // private Command _firstClick;
18 // private int count = 0;
20 // private string[] colors = new string[] {"Black", "Blue", "Gray", "Green", "Purple", "Pink", "Red" };
21 // public string TextColor = "Red";
22 // public Command ChangeColor {
24 // return _firstClick ?? (_firstClick = new Command (() => {
25 // Console.WriteLine ("First button clicked");
27 // TextColor = colors[count % 7];
32 // public MyAppViewModel()
39 public class TestTextLabel : NUIApplication
41 protected override void OnCreate()
44 Window window = Window.Instance;
45 window.BackgroundColor = Color.White;
47 TextLabelTestPage myPage = new TextLabelTestPage(window);
49 // MyPage myPage = new MyPage(win);
50 Extensions.LoadFromXaml(myPage, typeof(TextLabelTestPage));
52 Console.WriteLine("================== Set BindingContext in Application !!!! ==================");
56 public static void _Main(string[] args)
58 TestTextLabel p = new TestTextLabel();