Category / Section
How to Show or Hide the report buttons in OlapClient
1 min read
The report buttons in the OlapClient ToolBar can be enabled or disabled using “ShowReportButtons” property in OlapClient. The OlapToolBar buttons will be initialized after OlapClient loaded with applied templates. So, we have to set the ShowReportButtons Property as false in Loaded event of OlapClient.
Please refer the below code snippet for the same.
C#
public MainPage() { InitializeComponent(); this.DataContext = new ViewModel.ViewModel(); this.olapClient.Loaded += olapClient_Loaded; } void olapClient_Loaded(object sender, System.Windows.RoutedEventArgs e) { this.olapClient.ShowReportButtons = false; }