PointTemplate DataTemplate Trigger by Item

2 posts, 0 answers
    JONGHO avatar
    2 posts
    Member since:
    Sep 2011

    Posted 15 Jun 2014 Link to this post

    I want to datatrigger in pointtemplate's datatemplate.

    Current  I get Chart's datacontext .

    I need to ItemsSource by item.

    How access?
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 18 Jun 2014 Link to this post


    The DataContext in the template (PointTemplate) is the Data Point. The data point contains a reference to the original data item in its DataItem property. I have attached a simple project to demonstrate the use of data triggers in the label template. In the attached image you can see that the triggers were executed for x2 and x3 categories.

    Petar Marchev
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top