How to have a generic.xaml for Silverlight 3 and Silverlight 4? -
my main problem generic.xaml viewbox has moved assemblies.
how have 1 generic.xaml file namespace location of viewbox compile in sl3 , sl4?
i looked @ http://www.removingalldoubt.com/permalink.aspx/defa2a7d-b1e9-49eb-b8c8-438348be8d18 no avail...
note : there 2 attributes xmlnsprefix , xmlnsdefinition can place in assembly.cs.
thanks in advance.
finally gave on xmlnsdefinition , xmlnsprefix not work properly...it funny in wpf application designer window can resolve referemces compiler not...go figure.
i solved using cpp preprocessor blog... http://blogs.msdn.com/b/blemmon/archive/2009/04/29/using-the-preprocessor-to-share-incompatible-xaml-between-sl-and-wpf-part-1.aspx
i modified preprocessxaml modify generic.xaml.
<target name="preprocessxaml"> <itemgroup> <!-- convert defineconstants property itemgroup --> <xamlconstants include="$(defineconstants)" /> </itemgroup> <propertygroup> <!-- convert xamlconstants itemgroup list command line switches cl.exe --> <commandlinedefineconstants>@(xamlconstants->'/d%(identity)',' ')</commandlinedefineconstants> </propertygroup> <!-- run preprocessor --> <exec command="cl.exe /nologo /ep $(commandlinedefineconstants) "themes/generic.i.xaml" > themes/generic.xaml" /> <!-- replace pages preprocessed pages subsequent targets use preprocessed files -->
Comments
Post a Comment