Multi-Line Textboxes in Prism 8.0.0 Lose Formatting
When you create a textbox in Prism, you can either enter the text as a single line or manually introduce line breaks (using the return key or shift+return). In both cases, once you're done editing the text, you have the option of re-sizing the textbox itself. If you re-size the textbox to have a width less than the original width of the text, Prism will automatically break the text onto another line.
Original textbox
After re-sizing textbox
As you can see, the same text (after re-sizing the textbox) now takes up four lines, whereas before it only took up one. In Prism 8.0.0, if you save and re-open this file, the formatting of the textbox will have changed, now taking up fewer lines than when you had saved it.
After saving and re-opening in Prism 8.0.0
Why does this happen?
When you save a project file in Prism 8.0.0, there were no properties of the textbox to indicate that the contained text had been manually adjusted, resulting in breaks across multiple lines. When the textbox was re-sized, it introduced line breaks where there were none entered manually. Therefore, when the file was re-opened, the textbox was regenerated without any of these automatic line breaks, and the size of the textbox was changed accordingly.
How to fix this
This issue was fixed in Prism 8.0.2 so updating will correct this behavior. You can update to the latest version of Prism by going to the Help menu and selecting "Check for updates".
As a workaround in Prism 8.0.0 or 8.0.1, you can introduce manual line breaks to your text by using the return key (or shift+return). Manual line breaks entered this way will be saved as a property of the text, and so textboxes will retain these line breaks when the file is saved and re-opened.
Platforms Affected
This issue occurs in Prism 8.0.0 on both Windows and Mac
Keywords: Textbox multi-line formatting reset