ContextMenu on background?

Apr 28, 2011 at 4:28 PM
Edited Apr 28, 2011 at 5:56 PM


         Is there any way to add ContextMenu on backgroud (GraphLayout)? I tried couple different approaches but none of them worked.

         Thanks very much for your help.

Apr 28, 2011 at 6:16 PM

Finally figured it out:

under zoom control, add the following code

                        <MenuItem Header="Search by Name" />
                        <MenuItem Header="New Node"/>

You can add click event you want.