WPF and Inversion of Control: Listing 4.
public class WindsorViewFactory : IViewFactory
private readonly IWindsorContainer container;
public WindsorViewFactory(IWindsorContainer container)
this.container = container;
public T CreateView<T>() where T : IView
public T CreateView<T>(object argumentsAsAnonymousType)
where T : IView
Patrick Steele is a senior .NET developer with Billhighway in Troy, Mich. A recognized expert on the Microsoft .NET Framework, he’s a former Microsoft MVP award winner and a presenter at conferences and user group meetings.