private ViewModelBase GetChildInternal(ViewModelResolver resolver) { ViewModelBase viewModel = null; resolver.Reference.TryGetTarget(out viewModel); if (viewModel == null) { viewModel = resolver.ValueFactory(); resolver.Reference.SetTarget(viewModel); } return(viewModel); }