Hi there,
Is it possible to bind the BusyIndicator to a DomainDataSource without setting it up in the XAML source - only using code behind?
I've tried the following, and that works fine, however I would like to use binding if possible - eg. using
Is it possible to bind the BusyIndicator to a DomainDataSource without setting it up in the XAML source - only using code behind?
I've tried the following, and that works fine, however I would like to use binding if possible - eg. using
BusyIndicator.SetBinding(XXX, XXX);
.public TestGrid()
{
..........
_domainDataSource.LoadedData += new EventHandler<
LoadedDataEventArgs
>(_domainDataSource_LoadedData);
_domainDataSource.LoadingData += new EventHandler<
LoadingDataEventArgs
>(_domainDataSource_LoadingData);
..........
}
void _domainDataSource_LoadingData(object sender, LoadingDataEventArgs e)
{
BusyIndicator.IsBusy = true;
}
private void _domainDataSource_LoadedData(object sender, System.Windows.Controls.LoadedDataEventArgs e)
{
BusyIndicator.IsBusy = false;
}