Posted 24 March 2020, 7:45 am EST
Hello,
I would like to simplify a bit the aspect of the OlapPage component; Is it possible to hide the Save/Load button and the Chart section?
Thanks
Forums Home / ComponentOne / WPF Edition
Posted by: abellisomi on 24 March 2020, 7:45 am EST
Posted 24 March 2020, 7:45 am EST
Hello,
I would like to simplify a bit the aspect of the OlapPage component; Is it possible to hide the Save/Load button and the Chart section?
Thanks
Posted 24 March 2020, 7:17 pm EST
Hi,
C1Olap has all the buttons present inside the MainMenu’s Items collection. So, if you want to hide any of them then just access the Items in the MainMenu and set its Visibility to Collapsed
To hide Load button:
var loadButton = _c1OlapPage.MainMenu.Items[0] as C1MenuItem; if (loadButton != null) loadButton.Visibility = Visibility.Collapsed;
To save Load button:```
var tab = FindChild(_c1OlapPage, “Tab”) as TabControl;
if (tab != null)
{
var chart = tab.Items[1] as TabItem;
chart.Visibility = Visibility.Collapsed;
}
With regards,
Ruchir
[zip filename="CustomizeOlap_Demo.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-e88088ad-70b8-4d77-bb35-947f3e1cd119.zip[/zip]
Posted 25 March 2020, 11:45 am EST
Ok, I see how that would work. Thank you Ruchir