Hi guys,
In my efforts to develop a Page Layout for our application I wanted to be able to allow the users to precisely center PrinterLayers (Map, Label, etc.) horizontally and vertically. So I display a popup menu when the user right-clicks on a PrinterLayer and two of the options are 'Center Horizontally' and 'Center Vertically'. The problem is, when the user right clicks on a PrinterLayer it's 'handles' appear and the PrinterLayer becomes 'selected'. This is something that happens automatically over which the developer (me) has no control. Once the PrinterLayer has become 'selected' it will no longer respond to the 'SetPosition' method.
Is there a way that this behavior can be modified so that either the develper could prevent 'selection' under certain cricumstances or that the PrinterLayer could be made to respond to 'SetPosition' when it's 'selected'?
I have attached a sample project for you to play with.
Thanks!
PositionPrinterLayer.zip (29.2 KB)