Default value for RangeTool

3 posts, 1 answers
  1. Victor
    Victor avatar
    25 posts
    Member since:
    May 2014

    Posted 20 Aug 2014 Link to this post

    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. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 25 Aug 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Answer
    Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 26 Aug 2014 Link to this post

    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.

     
Back to Top