I have a user control that implements a custom web part verb through the IWebActionable interface, and this works perfectly, but i was hoping to hide the verb depending on the current display mode of the page the web part is in. So that the user cannot select the verb in browse mode etc.
something like
if((this.Page.WebPartManager).DisplayMode == WebPartManager.CatalogDisplayMode)
{
add custom verb
}
else
{
do nothing -> verb is not added
}
but I cannot access the web part manager from the custom control.
Any suggestions on how this could be done? Do i have to inherit the
IWebPart interface as well?