Reputation: 470
I must be missing a step here.
<toolkit:BusyIndicator HorizontalAlignment="Center" VerticalAlignment="Center" Name="busyIndicator" IsBusy="{Binding BusyIndicator}">
<Grid Background="#FFE6F0FF" HorizontalAlignment="Left" VerticalAlignment="Top" >
I have the following in my viewmodel:
private BusyIndicator _busyIndicator;
public BusyIndicator BusyIndicator
{
get { return _busyIndicator; }
set
{
if (_busyIndicator == value) return;
_busyIndicator = value;
OnNotifyPropertyChanged("BusyIndicator");
}
}
BusyIndicator = new BusyIndicator { IsBusy = true, BusyContent = "Please wait..." };
But when I fire my async call to WCF, nothing shows up at all?
Upvotes: 0
Views: 636
Reputation: 11
Also, make sure the DataContext property is set for the BusyIndicator control and that the "IsBusy" property in the ViewModel is within the specified data context. If the data context is set to a grid contained within the BusyIndicator, the property in the ViewModel won't be called.
The data context can be set at runtime (in the xaml.cs code-behind) or in the XAML.
Upvotes: 0
Reputation: 161
You can use the busy indicator on silver light page as well as on master page. this can be done using Messaging toolkit for details visit the link
http://codenicely.blogspot.com/2012/01/using-busy-indicator-of-master-page.html
Upvotes: 0
Reputation: 3143
Why does the property return a BusyIndicator
? Shouldn't it be a bool? Then I think it should work.
Upvotes: 2