Preselect a tool

2 posts, 0 answers
  1. Igor
    Igor avatar
    3 posts
    Member since:
    Dec 2011

    Posted 14 Jun 2014 Link to this post

    I'm trying to use your cropping tool inside ImageEditor. It's the only tool I need and use at the moment, and I don't want the user to have to click twice to get to it. How do I preselect CropTool programmatically?

    I tried setting IsSelected = true which sets the blue line above the tool icon but does not open straight to cropping.
  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    547 posts

    Posted 18 Jun 2014 Link to this post

    Hi Igor,

    Thank you for contacting us.

    You can use the RadImageEditor.CurrentTool property and set it when the RadImageEditor control is loaded:

    <telerikImageEditor:RadImageEditor Loaded="ImageEditor_Loaded">
            <telerikImageEditor:CropToolRatio Width="1" Height="1"/>
    private void ImageEditor_Loaded(object sender, RoutedEventArgs e)
        var editor = sender as RadImageEditor;
        editor.CurrentTool = editor.Tools.First();

    I hope this helps. Please, let us know if you have further questions.

    Rosy Topchiyska

    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
Back to Top