Note that there are some explanatory texts on larger screens.

plurals
  1. POLinked Themes/Generic.xaml Files will not work in visual studio 2008
    primarykey
    data
    text
    <p>i have a project that i am doing and i need to share the code between silverlight and WPF Assembly problem is that even though the wpf assembly is the owner of that file and the silverlight assembly only has a link to the file, all of the build actions are page everything is correct. if i make the silverlight assembly the owner then silverlight works and wpf doesnt, and currently with wpf being the owner i dont get any errors at all it just never styles the control like it cannot find it..</p> <p>Note: both projects exists in the same solution.</p> <p>this scenario builds and runs fine</p> <p>wpf project</p> <p>|__Themes</p> <pre><code> |__Generic.xaml |__SomeControl.cs </code></pre> <p>this scenario builds and runs but will not display the control if i change them from linked to normal it will work fine.</p> <p>i just want to share this source code and not have multiple versions of the same file floating around.</p> <p>SilverlightProject</p> <p>|__Themes</p> <pre><code> |__"Linked"Generic.xaml |__"Linked"SomeControl.cs </code></pre> <p>sorry for my corny Tree view representation</p> <p>+++++++ UPDATE +++++++++</p> <p>i have noticed when using any linked file regardless of if it is silverlight or WPF the link file will not build into the Themes folder in the resource only the root. i used reflector to see where my resources ended up after compilation of the assembly including the linked file and they ended up in the root , so with that being said. is there a way to prevent this or a fix for this if this is indeed non intended behavior .</p> <p>i would really love to get this figured out as it has been driving me insane for a while now.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload