I have an XtraReport with an XRPictureBox called CustomImage that has editing enabled on it:[C#]
this.CustomImage.EditOptions.EditorName = "Image"; this.CustomImage.EditOptions.Enabled = true;
We also have a setting in the software (outside of report editing) that allows you to specify the image file to always start with for this CustomImage. I can load the image file into the CustomImage with the following code:[C#]
CustomImage.ImageSource = ImageSource.FromFile( _reportLogoImageFile );
Editing fields displayed -> Click on CustomImage -> Click the 'X' button to remove the image.
The pre-loaded image is removed.
The image is not removed. It only removes an image if you have since overwritten the preloaded image with another image.
Is this by design? How can I make it so the behaviour is as expected?
Yes, this behavior is designed - the "Clear Changes" button actually removes any modifications and loads a default image. For now, you can either upload an empty image to replace the existing one or do not pre-load image, so that an end user will be required to select one. Would you please describe the scenario when you need to clear out the default image from the Picture Box?