Custom Mergfield Properties

2 posts, 0 answers
  1. Boris Rogge
    Boris Rogge avatar
    30 posts
    Member since:
    Mar 2006

    Posted 13 Aug 2013 Link to this post

    Dear Telerik,

    I've created a custom merge field and it works fine. Now I d like to add an extra metadata property (e.g. a GUID in string rep.)
    I've overwritten the CopyPropertiesFrom method to copy the extra property. It gets inserted into the xaml (when saved), however when doing a 'merge preview', the custom mergefield is copied (a new instance is created) without calling the CopyPropertiesFrom, instead it calls the CopyPropertiesFromCodeExpression method, where I cannot copy the extra meta data property.

    So my question is how to create and fully implement extra properties in custom merge fields.

    Kind regards
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 16 Aug 2013 Link to this post

    Hi Boris Rogge,

    Please refer to this help article where you can find detailed explanation of how to create a custom field and add a property to it.

    I hope this helps!

    Regards,
    Petya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top