Beispiel #1
0
 // Called by the Cocos2d-x C++ engine to display a CCEditBox
 public void OpenEditBox(String strPlaceHolder, string strText, int maxLength, int inputMode, int inputFlag, EventHandler <String> receiveHandler)
 {
     m_receiveHandler = receiveHandler;
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         EditBox editbox = new EditBox(this, strPlaceHolder, strText, maxLength, inputMode, inputFlag);
         LayoutRoot.Children.Add(editbox);
     });
 }
Beispiel #2
0
 public void openEditBox(String strPlaceHolder, string strText, int maxLength, int inputMode, int inputFlag, EventHandler<String> receiveHandler)
 {
     m_receiveHandler = receiveHandler;
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         EditBox editbox = new EditBox(this, strPlaceHolder, strText, maxLength, inputMode, inputFlag);
         if (m_mainPage != null)
         {
             m_mainPage.PresentUserControl(editbox);
         }
     });
 }
Beispiel #3
0
 public void openEditBox(String strPlaceHolder, string strText, int maxLength, int inputMode, int inputFlag, EventHandler <String> receiveHandler)
 {
     m_receiveHandler = receiveHandler;
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         EditBox editbox = new EditBox(this, strPlaceHolder, strText, maxLength, inputMode, inputFlag);
         if (m_mainPage != null)
         {
             m_mainPage.PresentUserControl(editbox);
         }
     });
 }
 // Called by the Cocos2d-x C++ engine to display a CCEditBox
 public void OpenEditBox(String strPlaceHolder, string strText, int maxLength, int inputMode, int inputFlag, EventHandler<String> receiveHandler)
 {
     m_receiveHandler = receiveHandler;
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         EditBox editbox = new EditBox(this, strPlaceHolder, strText, maxLength, inputMode, inputFlag);
         DrawingSurfaceBackground.Children.Add(editbox);
     });
 }