Bootstrap Conventions
public partial class App : Application
{
public App()
{
var bootstrapper = new WindsorApplicationBootstrapper<MainView>()
.OnBeforeInstall( conventions =>
{
var original = conventions.IsViewModel;
conventions.IsViewModel = type =>
{
if ( type.Namespace == "MyViewModelsNamespace" )
{
return true;
}
return original( type );
};
} );
}
}Last updated