Hide Send To Printer tool bar on ViewItem

Hello Bo,

I have created a ViewItem which contains html page. I have set the property “HideNavigationBar” to true. However on the ViewItem bottom, I do see a bar with a down arrow and printer icon (“Send to Printer” tooltip). My question is how to hide this bottom bar as well. Please let me know if there is a property to hide this bar.

Thanks

Giridhar

You need to override this in ViewItemUserControl class

public override bool ShowToolbar

{

get { return false; }

}

Hello,

Yes I have that code in the ViewItemUserControl class. But still I do see the toolbar at the bottom of the ViewItem. Please let me know.

Thanks

Giridhar

Hello,

The ViewItem is populated from the WorkSpacePlugin.cs, hence ShowToolbar cannot be override. So in this scenario how to disable the toolbar. Please let me know.

Thanks

Giridhar

You can only control whether the popup toolbar is shown for your own plugin view item types, not for build-in view items such as the HTML view item.

The “HideNavigationBar” property only exists for the HTML view item and controls whether the title bar in the top of the view item is shown or not - not the popup toolbar.

If you want to have a view item showing HTML for which you can control yourself whether the popup toolbar is shown you will need to implement your own ViewItemPlugin and override the ShowToolbar property on the user control as described by Thejaswi Madapushi above.