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) &quot;themes/generic.i.xaml&quot; &gt; themes/generic.xaml" /> <!-- replace pages preprocessed pages subsequent targets use preprocessed files --> 


Comments

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -