Create a custom editor

2 posts, 0 answers
  1. StepTNT
    StepTNT avatar
    18 posts
    Member since:
    Mar 2013

    Posted 08 Jan 2014 Link to this post

    I'm trying to use a DataForm to avoid writing my settings page manually, but I need some custom editors.

    In your documentation I can't find what I need, but I'm quite sure that we have this possibility and I'd like to know how to do this.

    Here's just an example of my property:

    [JsonProperty]
    public Color BackgroundColor
    {
        get { return _backgroundColor; }
        set
        {
            if (_backgroundColor == value) return;
            _backgroundColor = value;
            RaisePropertyChanged(() => BackgroundColor);
        }
    }

    and I want it do be bound to che Color property of a Coding4Fun's ColorPicker.

    How can I do that?

    As a side question, can I define my own annotations to make this thing automatic?
    Something like
    [ColorValueAttribute]
    public Color BackgroundColor
    {
        ...
    }
    to create a ColorPicker for each property marked with that attribute.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 13 Jan 2014 Link to this post

    Hi Stefano,

    Yes, you can easily create custom editors with RadDataForm. Here's the help article you need to follow:

    http://www.telerik.com/help/windows-phone/raddataform-features-attributesxaml.html#DefiningCustomEditors


    Let us know if you have additional questions.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top