I am currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4 . This library defines the MenuItem class in the System.Windows.Controls namespace .
There is no problem with SL3 because there is no MenuItem class elsewhere in the Silverlight class library; but now I need to use another control in the Silverlight 4 Toolkit assembly, and the toolbox now defines System.Windows.Controls.MenuItem in the same assembly!
So, I need a way to tell the compiler that I want to use System.Windows.Controls.MenuItem from my old assembly, and not assembly assembly 4.
The solution is similar to the function of external aliases .
I can configure the files that I write to myself with external aliases, but how can I tell the code generator that generates ".gics" files from XAML to build, more precisely, which aliases to use?
By default, it always generates System.Windows.Controls.MenuItem variables in .gics files and, of course, without aliases, the C # compiler cannot know which assembly to use.
I am using VS 2010 Professional, but I could not find a way to change this behavior.
Thanks in advance.
source share