Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Feb 21, 2021 @ 21:03
    Chriztian Steinmeier
    0

    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 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?

    Thanks,

    /Chriztian

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Feb 21, 2021 @ 21:23
    Chriztian Steinmeier
    100

    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 :D

    Oh well, carry on!

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft