// 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); }); }
// 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); }); }