I'm building a Silverlight application with Prism, and we'd like to use NInject. I've downloaded ninject-contrib to use their NInject bootstrapper, but it doesn't appear to build a Silverlight assembly. I compiled it myself to Silverlight, but it crashes Visual Studio.
Has anyone already ported ninject-contrib to Silverlight successfully?
You shouldn't have to use ninject-contrib. There is a download available for Silverlight. You can find it here. Let me know if this isn't what you are looking for, but if you would just like to use Ninject for dependency injection in a Silverlight app, this should be all you need.
Related
I just found out that, Sonar does not support Silverlight 5, but it does support Silverlight 4. I thought, if I can take a look at Sl4 plugin code and I might able to add Silverlight 5 support. I was going through plugin library but I can't find where is the SL4 plug in code. Could someone point me to where is it hosted and any direction in adding support for SL5. If the work is already in progress, how do I go about help on this project.
Thanks a lot.
The support of Silverlight is implemented in the .Net Core Plugin of the .Net & C# Plugins Ecosystem.
Adding support for SL5 should be quite easy and should be only located on the DotNetConstants class.
If you manage to do what you want, feel free to open a pull request on the projet! :-)
The WebAuthenticationBroker scheme in Windows Store apps is not bad. What would be the equivalent for WP8 and WPF? It would be nice to write once and use a similar system on each platform. Is DotNetOpenAuth still recommended?
I have build a WebAuthenticationBroker for WP7 (which would work ofcourse for WP8 too)
Inside the wrapper I've build for AzureMobileServices for WP7.
I haven't migrated it to a standalone project, it is part of a .Net wrapper i've build.
Let me know if it helps!
Watch Option (2) for Login here:
https://github.com/zaxy78/azure-mobile-wp7-sdk#login-to-azure-mobile-services
This might be a stupid question (I'm new to Silverlight!), but if I develop a .NET DLL with methods, can my Silverlight Out-of-browser app call and use this DLL and its methods if it is provided in the IsolatedStorage area of my Silverlight OOB install? Or does all code have to be contained in the Silverlight package?
Thanks!
How to: Use Automation in Trusted Applications
I am trying to integrate IronPython in my Silverlight application but am unable to do so. After downloading the binaries, every time I try to add the dlls as references in my VS2010 solution all I get is an error about them not being compiled for Silverlight. I have even tried downloading the source distribution, but cannot set the various projects making up the solution to build against Silverlight (the only choices I have are different versions of the .net framework).
As the IronPython website explicitly states Silverlight compatibility, why is it not working? Is there any easier way of getting scripting capabilities in my Silverlight app?
You have to use binaries from IronPython-2.6.1\Silverlight\bin folder in Silverlight.
Having never written a production quality Silverlight app, I am looking to find a quality open source reference application for Silverlight 3.0 (Silverlight 4.0 is no good as I have VS2008) to help learn Silverlight.
Ideally I'd like to see:
a line of business application, in the client-server tradition.
SQL Server back end
no use of 3rd party libraries like PRISM or CSLA as I would like to see how the core Silverlight technologies work.
I realise there are plenty of open source projects on Codeplex, but struggled to find any classic line of business apps there.
This is a really good one:
http://timecard.codeplex.com/
The following does use Prism, but you can learn a lot from it. It even shows localization:
http://happynet.codeplex.com/
In all honesty, get yourself upgraded to VS 2010. If you are serious about becoming a professional in Silverlight development, version 4 has the most bang-for-your-buck.
Not all the newer technologies are supported for Silverlight 3 and all the latest cool tutorials and project examples tend to be in VS2010/SL4.
You also should not ignore patterns like MVVM and libraries like Prism & MEF as they are rapidly becoming commonplace for Silverlight projects. There is more danger of you getting into Win-forms-style bad habits if you use a Win-forms style approach to Silverlight at first.
Here is a simple explanation of MVVM for Silverlight:
http://openlightgroup.net/Blog/tabid/58/EntryId/89/Silverlight-View-Model-Style-An-Overly-Simplified-Explanation.aspx
These videos are a good introduction to creating/understanding Prism-based projects, specifically for Silverlight:
http://channel9.msdn.com/posts/mtaulty/Prism--Silverlight-Part-1-Taking-Sketched-Code-Towards-Unity/
It includes him building an Outlook-style application using prism (with full source provided).
The codeplex project, full source and documents etc, for Prism and soon MEF is here:
http://compositewpf.codeplex.com/wikipage?title=Getting%20Started&referringTitle=Home
Prism was created by Microsoft and will soon have a final release of version 4 (including MEF).