在 xaml 后台初始化时加入

TextInputOptions.SetMultiline(textBox, true);
TextInputOptions.SetReturnKeyType(textBox, TextInputReturnKeyType.Return);

其中 textBox 为要修改的 TextBox 的 name