our application uses VS2008 and WPF. To apply the styles in the design mode, we have used the "BlendMergedDictionary" class (see the following link)
It works very well in VS2008 IDE.
Now we plan to move our application to VS2010.
In VS2010 Design mode (click on ~.xaml design), we get error message:
"The URI prefix is not recognized."
at System.Net.WebRequest.Create(Uri requestUri, Boolean userUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
at System.Windows.ResourceDictionary.set_Source(Uri value)
the styles does not apply at the design time. It works fine in runtime.
The following are the code:
public class BlendMergedDictionary : ResourceDictionary
/// This class the purpose is allow we reference the "themes" and "styles" in resource dictionaries in separated assemblies
/// by using StaticResource. The big problem using StaticResource is that it will complaints at design time can not find the resources
/// So we use this class in xaml file, if it is design time, it will load the resource dictionaries in.
/// If it is not in design time, it will use the reso
View Complete Post