This is a migrated thread and some comments may be shown as answers.

How to hide Open, Save, Undo, Redo buttons?

5 Answers 280 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Ruturaaj
Top achievements
Rank 1
Ruturaaj asked on 26 Sep 2019, 08:23 AM

Hi,

I want to remove the top four buttons from Image Editor control. How can do I do that? I found one thread for "UI for WPF", but the properties mentioned in that thread, like IsOpenButtonVisible etc are not there in my latest downloaded version of control. Are those properties specific to WPF? Please let me know how to remove those buttons in WinForm.

Thanks!

Ruturaaj.

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 26 Sep 2019, 10:35 AM

Hi Ruturaaj,

In the WinForms implementation, this is done in a different way. Here is how to hide the buttons: 

radImageEditor1.ImageEditorElement.CommandsElement.TopCommandsStackElement.Visibility = ElementVisibility.Collapsed;

I hope this helps. Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

RadImageEditor for Winforms

0
Ruturaaj
Top achievements
Rank 1
answered on 27 Sep 2019, 02:24 AM
Great, thanks. It's easy. And like WPF, how you iterate through the left side commands in WinForm?
0
Dimitar
Telerik team
answered on 27 Sep 2019, 07:56 AM

Hello Ruturaaj,

The following snippet demonstrates how you can iterate the items:

foreach (var item in radImageEditor1.ImageEditorElement.CommandsElement.CommandsStackElement.Children)
{
    if (item is RadMenuItem menuItem)
    {
        Console.WriteLine(menuItem.Text);
    }
}

Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

RadImageEditor for Winforms

0
Ruturaaj
Top achievements
Rank 1
answered on 27 Sep 2019, 02:26 PM

Thanks.

I checked the online documentation; these methods are not documented anywhere. Can you please show me where can I get the complete documentation either in CHM or PDF format?

0
Dimitar
Telerik team
answered on 30 Sep 2019, 06:53 AM

Hello Ruturaaj,

The following article shows where you can find the offline documentation: Download Product Files.

Thank you for your feedback, indeed such an article will be useful and we will add it as soon as possible.

I hope this helps. Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

RadImageEditor for Winforms

Tags
ImageEditor
Asked by
Ruturaaj
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ruturaaj
Top achievements
Rank 1
Share this question
or