Select to view content in your preferred language

Restricting tools in the editor widget...??

3830
11
10-27-2011 02:31 PM
JerryBiedenbender
Emerging Contributor
Is it possible to restrict some of the tools in the editor widget? I would like to take away the delete tool and other ones that are not ever going to be used by my users.

Thanks,
Jerry
0 Kudos
11 Replies
JenniferNery
Esri Regular Contributor
Please see Post# 7 in this thread. When you customize controls using Blend, EditorWidgetStyle is added to your Grid.Resources. You can then tweak this as you wish.
0 Kudos
DanielSchatt
Regular Contributor
Thank you Jennifer.  I was able to make the change.

The document that gave me the exact procedure I needed was:

http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize...

For others who may need to do this in future, what I did was to right-click on the MyEditorWidget object (or whatever name you assigned the editor widget) in the Objects and Timeline panel, click Edit Template, then Edit a Copy...  You will then be prompted to Create Style Resource.  Click OK and the style resource code will be created and added at the top of your xaml under <UserControl.Resources>  Look toward the bottom of that and you'll see the code for all the buttons, then you can remove whatever buttons you want by commenting them out.
0 Kudos