Excluding the Print button from a ViewItemToolbarPlugin

By default, a SmartClient ViewItemToolbarPlugin includes a Print button, with an icon style provided by SmartClient.

Is there any way to remove this button, or to customise its icon with our own, so that it fits better with other toolbar icons of our own?

It is possible to do it. Please see this page - https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_view_item_plugin.html&tree=tree_search.html?search=isprintenabled

Actually we tested it with SCToolbarPlugin sample.

We added a following line around line 29 in BackgroundColorViewItemPlugin.cs

public override bool IsPrintEnabled => false;

Then you will not see the print icon when you use the sample. Please try it.

Thanks Rie.

Unfortunately, the IsPrintEnabled property isn’t available in the WPF version ViewItemWpfUserControl, which is the one we are using.

Is this a limitation of the WPF user control, or could Milestone add this property?

The IsPrintEnabled property is on the ViewItemPlugin not the ViewItemWpfUserControl / ViewItemUserControl.

We just did another test with the SCIndependentPlayback sample which is using WPF classes and the answer of making the override on the ViewItemPlugin has been verified (with WPF sample).

My mistake, thanks again Rie