Articles in this section
Category / Section

How to change the Background color for OlapClient, OlapChartTab, OlapGridTab

1 min read

We can able to change the background colors for OlapClient control, OlapChartTab, OlapGridTab. This can be achieved by using the following code.

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.OlapChartTab.Background = (System.Windows.Media.Brush)new SolidColorBrush(Colors.Yellow);
            this.olapClient.OlapGridTab.Background = (System.Windows.Media.Brush)new SolidColorBrush(Colors.Yellow);
            this.olapClient.Background = (System.Windows.Media.Brush)new SolidColorBrush(Colors.Purple);
        }

 

 

Figure: Background colors for OlapClient, OlapChartTab, OlapGridTab has been changed

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied