Ejemplo n.º 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);
         DrawingSurfaceBackground.Children.Add(editbox);
     });
 }
Ejemplo n.º 2
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);
         DrawingSurfaceBackground.Children.Add(editbox);
     });
 }