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?
Rik
(Rie Kiuchi (Milestone Systems))
February 7, 2022, 3:20pm
2
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?
Rik
(Rie Kiuchi (Milestone Systems))
February 18, 2022, 1:47pm
4
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