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, In my current project, whenever I try to edit the style of the PropertyGrid, I get a casting exception: Unable to cast object of type Microsoft.Expression.DesignModel.Core.DocumentPrimitiveNode to type Microsoft.Expression.DesignModel.Core.DocumentCompositeNode. <GridViewColumn CellTemplate="{Binding Path=PropertyNameTemplate, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ms:PropertyGrid}}}" DisplayMemberBinding="{x:Null}"/> This happens in any Blend project. I am using V2.0 not the nightly build. |
|
|
This error is coming from Blend, not from the property grid, and looks like a bug within Blend. I think therefore you probably need to flag this up in the Blend forum at http://social.expression.microsoft.com/forums/en-us/blend/threads/. We will of course be happy to work with the Expression Blend folks to solve the problem -- if you could post the URL of the Blend forums thread when you create it, I'll subscribe to it and make sure they get any info they need -- but I honestly don't think this is a property grid issue. In the meantime, is it feasible for you to edit the style in Visual Studio? Alternatively, if you can identify which bits of the template are giving Blend grief (e.g. if it's the ancestor bindings), you might be able to stub them out while doing visual style editing in Blend, then re-insert them using VS once you've finished in Blend. Not ideal, I realise, but as I say I don't think there's much we can do about this other than help the Blend folks track down the problem at their end. |
|