public MainWindow() { InitializeComponent(); //building would take place in a factory method DataContext = new LongLivingModel(); LongLivingModel.AddChild(); LongLivingModel.AddChild(); }
public ShortLivedViewModel(LongLivingModel longLivingModel) { this.longLivingModel = longLivingModel; }