How to set the background

4 posts, 0 answers
  1. Michael
    Michael avatar
    52 posts
    Member since:
    Dec 2005

    Posted 07 Nov 2008 Link to this post

    Should be a simple question....  How do I change the background color of a chart?

    These don't seem to do it for me:

    this

     

    .RadChart1.Background = new SolidColorBrush(Colors.Blue);

     

    this

     

    .RadChart1.DefaultView.ChartArea.Background = new SolidColorBrush(Colors.Black);

    The only way I have done it so far is to override the whole control template, and set the Background on the WrapPanel....which is very much over-kill.  I must be missing something obvious.  If you want to change the background color of a control, you usually just set the Background property...

    Michael

     

  2. Michael
    Michael avatar
    52 posts
    Member since:
    Dec 2005

    Posted 10 Nov 2008 Link to this post

    I have figured out how to use various templates to change some of the items, but it is seriously not easy to change the look of this chart control.  For example, I am still unable to change the color of the axes text and lines on a simple bar chart.  Please provide some samples on how to theme everything in the entire chart.  I really like your demo of the chart, but this still feels like a CTP.
  3. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 11 Nov 2008 Link to this post

    Hello Michael Stuart,

    Thanks for the kind words! And the feedback. The background property is not working because we hardwired the white background into the template, something we didn't have the time to properly style for the release. We are working on removing such issues. As a WPF component, the chart can of course be fully customized by overriding its templates even right now, however, we are with you that it should allow for a much easier customization. We will be specifically targeting ease of use and customizibility this upcoming Q so you will see some big improvements there.

    We wholeheartedly agree with you that although RadChart for WPF is the richest wpf chart on the market there is still a lot to be desired from this product. It's still a v1.0 and it will take great feedback like yours to make this a great product like the rest of the telerik rad controls.

    Your telerik points have been updated.

    All the best,
    Vladimir Milev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Michael
    Michael avatar
    52 posts
    Member since:
    Dec 2005

    Posted 11 Nov 2008 Link to this post

    Thank you for the response.  I will just use a built-in theme until a later date.  Whatever you can do to make it super easy to completely control the look of everything in the control would be great.  This will probably be one of your most important WPF components, and I do like what you have so far.  I look forward to seeing new improvements in the future.
Back to Top