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

Default value for RangeTool

2 Answers 41 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 20 Aug 2014, 02:53 PM
Hi,
Im trying to create my own tangetool http://www.telerik.com/help/windows-phone/imageeditor-extensibility-newtool.html but it seems that code does not work

public RednessTool()
{
       this.Value = 1;
}

I want set default value but after loading this value is ovveriding to 0.0. Any ideas? 

_victor

2 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 25 Aug 2014, 06:42 AM
Hello Victor,

Thank you for this report.
It seems that there is a problem with setting an initial value for a custom tool.
We need some more time to further investigate it and to try to find a workaround (if this is indeed an issue). I will write you again with our findings.

Regards,
Vladislav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Accepted
Vladislav
Telerik team
answered on 26 Aug 2014, 12:55 PM
Hi Victor,

A little follow up on the reported issue.
It turns out that it is possible to achieve the desired behavior (setting an initial Value, which is not overridden). In order to persist it you should override the "OnIsSelectedChanged" method and in it setting the desired value. You can check the attached project for a sample implementation.

Please, don't hesitate to contact us again if needed.

Regards,
Vladislav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageEditor
Asked by
Victor
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or