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
|
NB : New thread so as not to pollute the other which I see has already been referenced from a sticky :) Following on from my previous post, I have an oddity. The custom style compiles and runs without error, but displays an exception when displayed in the vs2008 visual designer. if the custom style is the default style applied to the grid as it's default, i get: Cannot add element to 'Columns'; the property value is null. Error at object 'System.Windows.Controls.GridViewColumn', Line 1 Position 643. (etc...) If the custom style resource dictionary is loaded, but not actually referenced, I get: Object reference not set to an instance of an object.
Happy to provide the modified samples solution on request (however I've *basically* just followed the steps linked above). Any clues? |
|
|
I've committed a fix that appears to fix the first exception. It will be included in the 20 June nightly build, available from about 1430 GMT. One limitation is that you will not see captions for design-time sample data items in the visual designer. This is a known issue but it's a fairly low priority I'm afraid. The second exception (if you don't reference the custom style resource dictionary) may be fixed in the nightly build -- looking at the code it should no longer be possible for that exception to be thrown from that part of the code -- but I don't think this is a critical scenario for you, right? If it is important and the nightly doesn't fix it, let us know and we'll investigate. |
|
|
You're right, niether of these are critical issues since our application still compiles and runs just fine :) Thanks for the quick turnaround - I'll check out the nightly once it's up.
|
|