C1FlexViewer buttons visibility

Posted by: milosic.bogdan on 7 August 2018, 11:34 pm EST

    • Post Options:
    • Link

    Posted 7 August 2018, 11:34 pm EST

    In one test app im usinf C1FlexViewer, with C1FlexReport as document source.

    While everything works as expected, im wondering if there is any possibility to hide some buttons like:

    Report parameters button (since i fill report parameters in code)

    Refresh button

  • Posted 8 August 2018, 7:30 pm EST

    Hi,

    Yes, you can hide any buttons in the FlexViewer toolbar. For this there are two options:

    1. Use the Style for MainToolBar (you can access it from ‘C:\Program Files (x86)\ComponentOne\WPF Edition\C1WPFFlexViewer.4\XAML’ location) inXAML and manually set the Visiblity property for the elements you wish to hide.
    2. Access the elements you wish to hide, at run time using VisualTreeHelper and set its Visiblity property.

      I have also attached a sample application implementing approach second, for your reference.

    Thanks,

    RuchirCustomToolbar_FlexViewer.zip

  • Posted 28 August 2018, 10:08 pm EST

    Thank you

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels