This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have added the Allow Pre-defined Style to a Property grid using the recommendations as per the "How do I?" section in the WPF Property Grid documentation. This works just fine in VS2008, the code runs fine and I can preview the Styled Property Grid in the VS Designer. However when I use Expression Blend 3 (Preview) the following Error occurs The resource "{x:Static ms:Alloy.StyleKey}" could not be resolved. Whilst I understand the Blend 3 is a Preview version, this has become a problem as we rely on some of the new features in Blend 3 and its going to be very difficult to revert to Blend 2. Any idea as to why this could be happening and how it could be resolved? Would really appreciate the help. Many thanks Leon |
|
|
I'm not sure why this is happening -- I guess either Blend is having difficulties resolving ComponentResourceKeys (as opposed to string keys), or it is having difficulties with merged dictionaries. Or a combination of the two. One possible thing to try is to merge the dictionary using the <ResourceDictionary Source="..." /> syntax with a pack URL (instead of the shorthand <ms:Alloy /> or <ms:PropertyGridStyles /> syntax). If that doesn't help then you probably need to raise this with the Blend team on their forums (and of course we'll be happy to help them with our side of the issue). (Let us know if you do this, so we can see if we can contact someone within the Blend team to follow it up.) |
|
|
Hi, thanks I have taken your advice and posted this to Not had a reply to date, hopefully this can be resolved. I still can't get it working. Regards Leon |
|