Thank you for this feature suggestion. We will be introducing more convenient events in the upcoming service pack, which will enable you to track when a command is executed, be it the OpenImageCommand or any other.
With the current version of the controls, you can find out when a new image has been loaded in the control by subscribing to the CurrentImageChanged event of the History property in the following way:
.ImageEditorUI.ImageEditor.History.CurrentImageChanged += History_CurrentImageChanged;
Then, you have to check if you can undo/redo, because the CurrentImageChanged is also fired when you commit a command, e.g. you crop the picture or change its size.
Here is a sample code-snippet that determines if a new image has been loaded in the control:
sender, EventArgs e)
ImageHistory history = (ImageHistory)sender;
(!history.CanRedo && !history.CanUndo)
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>