using System.Collections.ObjectModel;
private static ObservableCollection<Record> myCollection;
public static void Main()
SetLoadingProperty(true);
myCollection = new ObservableCollection<Record>();
SetLoadingProperty(true);
myCollection.Add(new Record());
SetLoadingProperty(true);
Console.WriteLine(string.Join("", myCollection.Select(x => "IsLoading="+x.IsLoading)));
public static void SetLoadingProperty(bool isLoading)
if (myCollection == null)
foreach(var record in myCollection)
record.IsLoading = isLoading;
public bool IsLoading {get;set;}