Unable to wrap Content

2 posts, 0 answers
  1. bc3tech
    bc3tech avatar
    14 posts
    Member since:
    Oct 2011

    Posted 16 Nov 2011 Link to this post

    Here's my XAML:

    <telerikPrimitives:RadBusyIndicator x:Name="Busy"
                                        Content="{Binding Source={StaticResource ResourceStrings}, Path=Resources.Status_LongStatusMessage }"
                                        Foreground="{StaticResource PhoneAccentBrush}"
                                        FontSize="{StaticResource PhoneFontSizeSmall}">
                <TextBlock Text="{Binding}"
                           TextWrapping="Wrap" />


    The problem I am having is when I set the resourceString behind Content to something really long, and don't put in line breaks manually, the text box shown beneath the busy indicator still won't wrap. Even though, as you can see, I have textWrapping=Wrap in the content template. Any ideas?
    I should add that the same thing happens even if not using resource strings and I just put in a long line of text.

  2. Deyan
    Deyan avatar
    2026 posts

    Posted 17 Nov 2011 Link to this post

    Hello Brandon,

    Thanks for writing.

    I would like to inform you that we have been able to reproduce the undesired behavior. We will investigate the case and will provide a solution for the Q3 2011 SP1 release which will be out in a month or so. For the time being, our advice would be to restrict the size of the TextBlock by setting its MaxWidth property in a way it suits your needs. In this way the text will be wrapped.

    Let me know if you need further assistance here.

    P.S. I have updated your account with 800 Telerik points for bringing our attention to this issue.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top