You can get the code from codeplex here: http://www.codeplex.com/Mobile
It is based on the MCSF but for .NET CF 3.5.
I have had a look at the IoC framework and it is pretty good but would be even better if it had support for configuration files (XML). So currently you have to code something like this:
builderThen you can code this:
.Register<IEditCustomersView>(
c => new EditCustomersView())
.InitializedBy(
(c, v) => v.Presenter = c.Resolve<EditCustomersPresenter>());
var view = ApplicationRoot.Container.Resolve<IEditCustomersView>();This is a first cut so maybe we will see support for configuration files in the future. If I get time I'll add support for it.
It's quite cool as you can pass in an Action delegate at the time of register to instantiate the class.
3 comments:
Hy Simon
Ctacke just made a blog post about IoC too. See:
http://blog.opennetcf.com/ctacke/PermaLink,guid,f2ec9e37-2772-4f32-ae25-11133be4b7a3.aspx
and the interesting proposition from Filip:
http://code.google.com/p/compactcontainer/
Have fun
Daniel
Thanks for that Daniel!.
Cheers,
Simon
If factg we now have our framework up in CodePlex too:
http://ioc.codeplex.com
Post a Comment