For a TextBox to display its content in multiline, the following properties must be set:
Content displayed in DataPanel-TextBox
Content displayed in DataGrid
If the IsMultiline property is set, but the BindingFormat is SingleLine, the content will be displayed on a single line, and can be edited by double click on the TextBox.
Content displayed in TextBox(DataGrid or DataPanel)