Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
xamdatachart tooltip binding issue
posted

I am having a binding issue with the tooltip in my xamdatachart. 

 

Below is the snippet where I call it in my chartcallback event:

 if (line.Description == "Datum Pressure VS Test Date") {                            

      var tooltipTemplate = Application.Current.TryFindResource("PressureTestToolTipTemplate");                            

if (tooltipTemplate != null){                                

var tooltip = new ContentControl();                                

tooltip.DataContext = tooltip.ContentTemplate = (DataTemplate) tooltipTemplate;                                

series.ToolTip = tooltip;             

}}

 

Below is the datatemplate where the binding occurs:

<TextBlock Style="{DynamicResource Navigation}" Text="Type: "/>                

<TextBlock Style="{DynamicResource Navigation}"                           

                 Text="{Binding Item.TestType.Value.Value}" />

 

 

This line  "Text="{Binding Item.TestType.Value.Value}" />"  should be bound to dynamic value that changes.  It shows up empty, when it shouldn't.  is there something I am missing/doing wrong?