Must Read, Dependency Injection Paper

Unity Developer’s Guide covers various styles of dependency injection and also additional capabilities of Unity container, such as object lifetime management, interception, and registration by convention. It also discusses the advanced topics of enhancing Unity with your custom extensions.

Unity Dev Guide

Download link DependencyInjectionWithUnity

WPF – RadGriview Add ColumnGroupDescriptor in XAML

   <telerik:ColumnGroupDescriptor Column="{Binding Columns[\COLUMNNAME\],
                          ElementName=GRIDNAME}" SortDirection="Ascending"/>

COLUMNNAME should be named using UNIQUENAME instead of NAME!!!!

Silverlight – Adding Xaml to custom controls at run time

System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream(“YourNamespace.YourControl.xaml”);
implementationRoot =
this.InitializeFromXaml(new System.IO.StreamReader(s).ReadToEnd());

Canvas rootCanvas = (Canvas)implementationRoot;
Rectangle r = (Rectangle)XamlReader.Load(“<Rectangle Width=’10’ Height=’10’ Fill=’#FF000000′ />”);

VS 2010 – Insufficient Memory Error on trying to copy/paste

“Insufficient available memory to meet the expected demands of an operation at this time”

In Visual Studio 2010, When trying to copy (Ctrl + C or using Copy from Menu) i get the above error message. This is apparently a bug in VS 2010 and as of 16th June 2010 Microsoft is working on a hotfix but to ETA is yet set. See the link below:

Temporary solution till then is to restart VS2010