在xaml后台初始化时加入
TextInputOptions.SetMultiline(textBox, true);
TextInputOptions.SetReturnKeyType(textBox, TextInputReturnKeyType.Return);其中textBox为要修改的TextBox的name
在xaml后台初始化时加入
TextInputOptions.SetMultiline(textBox, true);
TextInputOptions.SetReturnKeyType(textBox, TextInputReturnKeyType.Return);其中textBox为要修改的TextBox的name