| Invert |
Michael Underhill
09/24/2010 10:54
Remove export buttons from Silverlight UI
How would remove or hide the buttons for exporting to XPS, RTF, HTML in the Silverlight control?
|
Irina Sabaeva
09/27/2010 02:22
Remove export buttons from Silverlight UI
Hello,
Please see the example that demonstrates how to hide buttons of the tool bar: http://perpetuumsoft.com/support/RSS/SampleApplicationSL4HideTemplateButttons.zip
Pay attention to MainPage.xaml.
Tags of the buttons for exporting to XPS, RTF, HTML are commented out:
...
<!-- <local:ToolButton x:Name="RtfExportButton" Template="{StaticResource ToolBtn}" Margin="0,2,0,2" IsTabStop="False">
<local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/RTFDisabled32.png" Stretch="None"/>
</local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/RTF32.png" Stretch="None" Height="32" Width="32"/>
</local:ToolButton> -->
<!-- <local:ToolButton x:Name="XpsExportButton" Template="{StaticResource ToolBtn}" Margin="0,2,0,2" IsTabStop="False">
<local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/XPSDisabled32.png" Stretch="None"/>
</local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/XPS32.png" Stretch="None" Height="32" Width="32"/>
</local:ToolButton> -->
<local:ToolButton x:Name="PdfExportButton" Template="{StaticResource ToolBtn}" Margin="0,2,0,2" IsTabStop="False">
<local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/PDFDisabled32.png" Stretch="None"/>
</local:ToolButton.DisabledContent>
<Image Source="/PerpetuumSoft.Reporting.Silverlight.Client;component/Resources/Images/PDFEnabled32.png" Stretch="None" Height="32" Width="32"/>
</local:ToolButton>
...
Best regards,
Irina Sabaeva,
Perpetuum Software Support Team
|