We are using the xamDataChart interaction feature with xamPivotGrid.
in the SeriesCreating event of the OlapXAxis we are applying a MarkerTemplate to the series.
My Question is, what property should we set the TextBlock Test binding to?
We have tried:
Item.Value, Cell.Value, Cell.ValueFormatted
None work
var xamlMarker = @" <DataTemplate x:Key='ColumnMarkerTemplate' xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> <TextBlock Text='{Binding Cell.ValueFormatted}' Foreground ='Black' FontSize='12' FontWeight='Bold' VerticalAlignment ='Center' HorizontalAlignment ='Center' TextWrapping = 'Wrap' /> </DataTemplate>";
Second Problem will be how to NOT display the markers in the Legend?
Hi,
Can you please try this: Text="{Binding Item.Cell.FormattedValue}" and say if it works for you as well. It works on my side and I do not see any marker templates in the legend.
Thanks,
M.Yovchev