c# - Visual Studio Universal App Resource is not found when in Shared folder -


this problem bother visual studio ide telling me cant find resource, when build application not having problem.

in visual studio have this: enter image description here

here example of universal app architecture follows:

example.windowsphone

->mainpage.xaml 

example.share

-> style.xaml -> app.xaml has style.xaml referenced 

eventhought have reference dmbluebrush in style page :

 <solidcolorbrush x:key="dmbluebrush" color="{staticresource dmblue}" /> 

in visual studio tell me cant find it, when build application find resource. have not reference correctly ide work?

i using visual studio 2013 professional version 12.0.31101.00 update 4.

edit 1:

in app.xaml in shared have:

<application     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >     <application.resources>         <resourcedictionary>             <resourcedictionary.mergeddictionaries>                 <resourcedictionary source="theme/styles.xaml"/>                 <resourcedictionary source="theme/other.xaml"/>             </resourcedictionary.mergeddictionaries>         </resourcedictionary>     </application.resources> </application> 

the issue need merge resourcedictionary directly inside other resourcedictionary, instead of including them both in app.xaml.

see here complete example: http://blog.craftingbytes.com/2015/05/resource-sharing-in-windows-universal.html


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -