Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Is it possible to Create different pojects for Views, ViewModels and Models in a single solution

$
0
0

Thank you for your kind reply , Richard.

That's working. 

But I found some other code like  Adding catalog of referenced assemblies.

var catalog = new AggregateCatalog(AssemblySource.Instance.Select(x => new AssemblyCatalog(x)));
            catalog.Catalogs.Add(new AssemblyCatalog((typeof(CMSample.ViewModels.ShellViewModel)).Assembly));//.ViewModels.ShellViewModel)).Assembly));
            container = new CompositionContainer(catalog);var batch = new CompositionBatch();

            batch.AddExportedValue<IWindowManager>(new WindowManager());
            batch.AddExportedValue<IEventAggregator>(new EventAggregator());
            batch.AddExportedValue(catalog);
            batch.AddExportedValue(container);

            container.Compose(batch);

I am  not sure about the code, I got. will you please tell me, Which one suits best in Caliburn.Micro standards, the above mentioned code or one described in your reply.

Thanks

Antony


Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>