Save Command

2 posts, 0 answers
  1. roger
    roger avatar
    24 posts
    Member since:
    Jun 2009

    Posted 18 Jul 2011 Link to this post

    Short question. How can I intercept the save command, i.e. not show the save dialog, but write the image into a database? I tried the ImageToolViewModel, but in there are only tools defined... no save button.

    Edit: Found the ImageEditorRoutedCommands.Save
    is there a (telerik) best practice to override the command?

    Another Edit: Ok there's myImageEditorUI.ImageEditor.CommandBindings ... where I can add a command binding to the save command and set handled = true ... however, ImageEditor seems to be (always) null, even after an image has been loaded.

    Thanks for your advice!
  2. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 20 Jul 2011 Link to this post

    Hi Roger,

    One option would be to use directly RadImageEditor without UI and implement your own.
    However, if you don't want to go into that, you can set a new template for the RadImageEditorUI based on the original one which changes the command, to which the Save button is bound.

    Best wishes,
    Ivailo
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top