You can encapsulate the IncrementalSource in the another class say "MainDataViewModel" and add the property on that
class to control the visibility of GridView. Something like this -
public class MainDataViewModel {
public IncrementalSource<Artists_MainViewModel,Artists_ItemViewModel> Artists { get; set; }
public Visibility ArtistsVisibile { get { return (Artists.Count > 0 ? Visibility.Visible : Visibility.Collapsed); } }
};
* Just typed the class here, so there could be some syntax error.
Now just the datacontext for GridView parent to object of MainDataViewModel
and bind the properties Artists and ArtistsVisible accordingly.
Thanks, Sachin