The chart is not available in the code through its name lineSeries
, because it is defined within a DataTemplate, which limits its namescope. Actually, that would be true for any control, not just for the chart. You can find more details here
. To solve the issue, you can set DataContext
property of the HubSection itself and it will be propagated to the items in it. You can find similar topics discussed in this article
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.