Gradient on Bar Chart

32 posts, 0 answers
  1. Jaseem
    Jaseem avatar
    4 posts
    Member since:
    Aug 2013

    Posted 15 Aug 2013 Link to this post

    Hi,

    how can i set the 'MaskVisibility' property  through code?. cannot find the property in code. i am creating BarSeriesDefinition in code dynamically and it is not declared in xaml. hoping for a quick reply :).

    thank you


  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 20 Aug 2013 Link to this post

    Hi,

     Since this property is series type dependent, you need to cast your series to HorizontalBarSeriesDefinition for the MaskVisibility to be reachable:

    (this.chart.SeriesMappings[0].SeriesDefinition as HorizontalBarSeriesDefinition).MaskVisibility = System.Windows.Visibility.Collapsed;

    Regards,
    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top