This is a migrated thread and some comments may be shown as answers.

Unable to wrap Content

1 Answer 65 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bc3tech
Top achievements
Rank 2
bc3tech asked on 16 Nov 2011, 03:20 PM

Here's my XAML:

<telerikPrimitives:RadBusyIndicator x:Name="Busy"
                                    Background="#BB000000"
                                    Grid.Row="0"
                                    IsRunning="True"
                                    Content="{Binding Source={StaticResource ResourceStrings}, Path=Resources.Status_LongStatusMessage }"
                                    HorizontalContentAlignment="Center"
                                    HorizontalAlignment="Stretch"
                                    Foreground="{StaticResource PhoneAccentBrush}"
                                    AnimationStyle="AnimationStyle2"
                                    FontSize="{StaticResource PhoneFontSizeSmall}">
    <telerikPrimitives:RadBusyIndicator.ContentTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding}"
                       HorizontalAlignment="Center"
                       TextAlignment="Center"
                       TextWrapping="Wrap" />
        </DataTemplate>
    </telerikPrimitives:RadBusyIndicator.ContentTemplate>
</telerikPrimitives:RadBusyIndicator>

 

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.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 17 Nov 2011, 09:42 AM
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.

Greetings,
Deyan
the Telerik team

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

Tags
BusyIndicator
Asked by
bc3tech
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Share this question
or