Specifying UpFill and DownFill for Candlestick

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Dec 2012

    Posted 05 Dec 2012 Link to this post

    This is what I'm specifying for my CandlestickSeries:

    Style candlestickStyle = new Style(typeof(Candlestick));
    candlestickStyle.Setters.Add(new Setter(Candlestick.UpFillProperty, new SolidColorBrush(Colors.Green)));
    candlestickStyle.Setters.Add(new Setter(Candlestick.DownFillProperty, new SolidColorBrush(Colors.Red)));
    series.DefaultVisualStyle = candlestickStyle;

    But it has no effect on the rendered candlesticks - I still get default fill. Anything I'm doing wrong?
  2. Victor
    Victor avatar
    1358 posts

    Posted 08 Dec 2012 Link to this post

    Hi Volha,

    Thanks for writing.
    Please remove any palette settings that may be applied.  If a palette is set, it has higher priority than the default visual styles.

    Please write again if you have other questions.

    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top