Based on my research, UWP itself does not have such an API. You could set xml:space="preserve"
to UWP textblock one by one. It is not possible to copy this property to the control and copy it. Uwp is the same as Wpf, essentially adding xml:space="preserve"
to the TextBlock one by one. You can set the reserved space of TextBlock in batches by looping.
If the answer is the right solution, please click Accept Answer and kindly upvote it. If you have extra questions about this answer, please click Comment.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.