Exemplo n.º 1
0
 private void OnAddBtnClickEvent(object sender, Tizen.FH.NUI.Controls.InputField.ButtonClickArgs args)
 {
     if (sender is Tizen.FH.NUI.Controls.InputField)
     {
         Tizen.FH.NUI.Controls.InputField inputfield = sender as Tizen.FH.NUI.Controls.InputField;
         Console.WriteLine("-------, name: " + inputfield.Name + ", args.State = " + args.State);
         inputfield.Text = "Click on the add button";
     }
 }
Exemplo n.º 2
0
 private void OnCancelButtonClickEvent(object sender, Tizen.FH.NUI.Controls.InputField.ButtonClickArgs args)
 {
     if (sender is Tizen.FH.NUI.Controls.SearchBar)
     {
         Tizen.FH.NUI.Controls.SearchBar searchBarObj = sender as Tizen.FH.NUI.Controls.SearchBar;
         Console.WriteLine("-------, name: " + searchBarObj.Name + ", args.State = " + args.State);
         if (args.State == Tizen.FH.NUI.Controls.InputField.ButtonClickState.BounceUp)
         {
             //if (searchBarObj.Text == "ERROR")
             //{
             searchBarObj.TextColor = Color.Black;
             //}
             searchBarObj.Text = "";
             searchBarObj.ShrinkSearchList();
         }
     }
 }
Exemplo n.º 3
0
 private void OnSearchButtonClickEvent(object sender, Tizen.FH.NUI.Controls.InputField.ButtonClickArgs args)
 {
     if (sender is Tizen.FH.NUI.Controls.SearchBar)
     {
         Tizen.FH.NUI.Controls.SearchBar searchBarObj = sender as Tizen.FH.NUI.Controls.SearchBar;
         Console.WriteLine("-------, name: " + searchBarObj.Name + ", args.State = " + args.State);
         if (args.State == Tizen.FH.NUI.Controls.InputField.ButtonClickState.BounceUp)
         {
             if (searchBarObj.Text.Length > 10)
             {
                 searchBarObj.TextColor = Color.Red;
             }
             else
             {
                 searchBarObj.ExpandSearchList();
             }
         }
     }
 }