title: WPF: Period character (".") in a strange place in TextBlock
body: <p>I am displaying a string with a TextBlock in WPF. It has a period character followed by a newline somewhere in the middle. For some reason this causes the TextBlock to always show the period character at the start of the line (it should be right after the word "content"). When I enable text wrapping it gets even stranger. Now by resizing the window I can move the character to a different line but it will always be right at the start.</p>
  
  <p><a href="https://i.stack.imgur.com/GCOT1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GCOT1.png" alt="wrong placement of the period character"></a>
  <a href="https://i.stack.imgur.com/lm11f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lm11f.png" alt="still wrong placement with text wrapping"></a></p>
  
  <p>This is my Markup:</p>
  
  <pre class="lang-XAML prettyprint-override"><code>&lt;Grid Width="Auto"&gt;
      &lt;Grid.Style&gt;
          &lt;Style TargetType="Grid"&gt;
              &lt;Setter Property="Margin" Value="{StaticResource MessageBubbleMarginRight}" /&gt;
              &lt;Setter Property="HorizontalAlignment" Value="Left" /&gt;
              &lt;Style.Triggers&gt;
                  &lt;DataTrigger Binding="{Binding Path=Message.IsMine, ElementName=owner}" Value="True"&gt;
                      &lt;Setter Property="Margin" Value="{StaticResource MessageBubbleMarginLeft}" /&gt;
                      &lt;Setter Property="HorizontalAlignment" Value="Right" /&gt;
                  &lt;/DataTrigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/Grid.Style&gt;
      &lt;Rectangle RadiusX="10" RadiusY="10" Stroke="Black" Fill="AliceBlue" /&gt;
      &lt;TextBlock Text="{Binding ElementName=owner, Path=Message.Text, FallbackValue=This is a super long&amp;#x0a;Multiline text}"
                 Margin="20, 20, 20, 20"
                 TextWrapping="Wrap"
                 VerticalAlignment="Center"&gt;
          &lt;TextBlock.Style&gt;
              &lt;Style TargetType="TextBlock"&gt;
                  &lt;Setter Property="TextAlignment" Value="Right" /&gt;
                  &lt;Style.Triggers&gt;
                      &lt;DataTrigger Binding="{Binding Message.IsMine, ElementName=owner}" Value="True"&gt;
                          &lt;Setter Property="TextAlignment" Value="Left" /&gt;
                      &lt;/DataTrigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
          &lt;/TextBlock.Style&gt;
      &lt;/TextBlock&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Am I missing something here? Or is this a rendering glitch in WPF?</p>