1
Vote

Error Message "startIndex must be less than length of string" with entity #xA0 (non-breaking space)

description

I've tried to add a non-breaking space with entity
 
as the content of a TextBlock. When trying to beautify I get this error message:

Error in StylerPackage:
startIndex must be less than length of string.
Parameter name: startIndex
If this deems a malfunctioning of styler, please kindly submit an issue at http://xamlstyler.codeplex.com.

Xaml:
<UserControl x:Class="MyTestproject.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <TextBlock>&#xA0;</TextBlock>
    </Grid>
</UserControl>

comments