If I now look at the problem this way. The XAML code is as follow:
<toolkit:PerformanceProgressBar
x:Name="performanceProgressBar"
Margin="0,-40,0,0"
IsIndeterminate="true"
Visibility="{Binding ShowProgressBar}"
Grid.ColumnSpan="2"/>
and the code behind is as follows:
private bool ShowProgressBar
{
get { return !App.ViewModel.IsDataLoaded; }
}
The progress bar does not disappear after the data has been loaded, i.e. ShowProgressBar is false.
I think you can do it this way: