This is a migrated thread and some comments may be shown as answers.

Create a custom editor

1 Answer 40 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
StepTNT
Top achievements
Rank 1
StepTNT asked on 08 Jan 2014, 08:44 PM
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.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 13 Jan 2014, 08:46 AM
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.
Tags
DataForm
Asked by
StepTNT
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or