public MyPage() { AllDeps = new ObservableCollection <Foo>(); InitializeComponent(); // initialize Dep foreach (var d in Dep.GetAll()) { AllDeps.Add(d); } }