PointTemplate DataTemplate Trigger by Item

2 posts, 0 answers
  1. jongho
    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
    Admin
    Petar Marchev avatar
    968 posts

    Posted 18 Jun 2014 Link to this post

    Hello,

    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.

    Regards,
    Petar Marchev
    Telerik
     
    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top