I've created a PropertyValueConverter for a custom property editor but I am having trouble getting it to work properly.
It's a simple string property that I'd just like to clean a bit before returning the value to e.g. GetPropertyValue<string>()
I can verify (using LogHelper) that IsConverter() is being called, and that it returns True for my converter. But neither ConvertSourceToObject() nor ConvertDataToSource() seem to be executed (I've tried littering them with Log messages, none of which are being recorded).
Is this normal that I can't record any logging within those methods, or are they literally not being called?
I had copied the method signatures for those two from the documentation here on Our - and they are missing the override keyword, which I can't really decide if should be fixed or not :D
PropertyValueConverter not being called
Hi there,
I've created a PropertyValueConverter for a custom property editor but I am having trouble getting it to work properly.
It's a simple
string
property that I'd just like to clean a bit before returning the value to e.g.GetPropertyValue<string>()
I can verify (using
LogHelper
) that IsConverter() is being called, and that it returnsTrue
for my converter. But neitherConvertSourceToObject()
norConvertDataToSource()
seem to be executed (I've tried littering them with Log messages, none of which are being recorded).Is this normal that I can't record any logging within those methods, or are they literally not being called?
Thanks,
/Chriztian
So I found the error(s)...
I had copied the method signatures for those two from the documentation here on Our - and they are missing the
override
keyword, which I can't really decide if should be fixed or not :DOh well, carry on!
/Chriztian
is working on a reply...