Tech Off Post

Single Post Permalink

View Thread: TextBlock wrapping of text in Silverlight XAML file.
  • User profile image
    bitdisaster

    Just set the TextWrapping property to "Wrap".

    <StackPanel x:Name="LayoutRoot" Background="White">           

    <TextBlock Text="Hello World, here is a very long text that will wrap." TextWrapping="Wrap" />   

    </StackPanel>