private void LineInput_Executed(object sender, ExecutedRoutedEventArgs ev) { var input = Text; InputHistory.Add(input); _currentHistoryIndex = -1; if (OnLineInput(input)) { TextInputArea.Clear( ); } }
public ITextInputArea CreateTextArea(IForumReader reader, int x, int y, bool isPost = true) { ITextInputArea area = new TextInputArea(reader, x, y, true); return(area); //Assembly assembly = Assembly.GetExecutingAssembly(); //Type commandType = assembly.GetTypes().FirstOrDefault(t => typeof(ITextInputArea).IsAssignableFrom(t)); //if (commandType == null) //{ // throw new InvalidOperationException("TextArea not found!"); //} //object[] args = new object[] { reader, x, y, isPost}; //ITextInputArea commandInstance = (ITextInputArea)Activator.CreateInstance(commandType, args); //return commandInstance; }
public ITextInputArea CreateTextArea(IForumReader reader, int x, int y, bool isPost = true) { ITextInputArea area = new TextInputArea(reader, x, y, isPost); return(area); }
public void FocusTextInputArea( ) { TextInputArea.Focus( ); }
public void FocusInputBar( ) { TextInputArea.Focus( ); }
private void RoutedEvent_GotFocus(object sender, RoutedEventArgs ev) { TextInputArea.Focus( ); }