public T ResolveWithParent <T>(ObservableObjectBase parent) { var parameterOverride = new ParameterOverrides { { "target", parent } }; return(_container.Resolve <T>(parameterOverride)); }
/// <summary> /// Initializes a new instance of the <see cref="ViewModelTraitCollection"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="container">The container.</param> public ViewModelTraitCollection(ObservableObjectBase parent, ITraitDependencyResolver resolver) { _parent = parent; this.DisposeWith(parent); _resolver = resolver; }
/// <summary> /// Initializes a new instance of the <see cref="ViewModelTraitCollection"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="container">The container.</param> public ViewModelTraitCollection(ObservableObjectBase parent, IUnityContainer container) { _parent = parent; this.DisposeWith(parent); _container = container; }
public T ResolveWithParent <T>(ObservableObjectBase parent) { return(default(T)); }
public BehaviourCollection(ObservableObjectBase parent, IUnityContainer container) { _parent = parent; this.DisposeWith(parent); _container = container; }