If the span contains just a single space, that shouldn't be an issue. However, if it is empty - that might be causing the exception. Could you please elaborate more on what is the empty space? If the string.IsNullOrEmpty()
method returns true
when invoked with the Span.Text
value, removing this span could prevent the issue you are observing. Could you please test that? Here is an example in code:
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow
you to write beautiful native mobile apps using a single shared C# codebase.