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

Binding in BusyContentTemplate

3 Answers 216 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Garry
Top achievements
Rank 1
Garry asked on 07 Aug 2010, 10:51 PM
I can get static content to work all day long in the template, but it doesn't seem to pick up my binding.

Any ideas what I'm doing wrong?

Template
<DataTemplate x:Key="busyTemplate">
                <StackPanel Orientation="Vertical">
                    <Label Content="Synchronizing EliteLive.sdf with the remote database."/>
                    <TextBlock Text="{Binding SyncStatus}" TextWrapping="Wrap"/>
                </StackPanel>
            </DataTemplate>

BusyIndicator
<telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                IsBusy="True"
                IsIndeterminate="True"
                ProgressValue="{Binding PercentageComplete}"
                BusyContentTemplate="{StaticResource busyTemplate}" >
            </telerik:RadBusyIndicator>

3 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 10 Aug 2010, 09:38 AM
Hello Garry,

The DataContext of the BusyContentTemplate is the BusyContent of the RadBusyIndicator. I don't see you setting the BusyContent property. Perhaps you should bind it to an instance of the class that has that SyncStatus property.

Sincerely yours,
Panayot
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Garry
Top achievements
Rank 1
answered on 11 Aug 2010, 12:39 PM
Panayot,
Thanks for the replay and by adding BusyContent="{Binding}"my template binding now works. Just in case someone else misses this subtle fact.
0
Pana
Telerik team
answered on 11 Aug 2010, 01:49 PM
Hi Garry,

I am glad I could help. If you have further problems do not hesitate to contact us again.

Sincerely yours,
Panayot
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
BusyIndicator
Asked by
Garry
Top achievements
Rank 1
Answers by
Pana
Telerik team
Garry
Top achievements
Rank 1
Share this question
or