Code for Context menu.

refs #31085,31130