The Markers on my pie chart wrap after a few characters. I can reduce the wrapping by reducing the marker font size, but is there a way to "turn off" the wrapping?
John Myczek
Hi John,
The Marker class does not have a TextWrapping property. There may be a way to customize the text wrapping through a style or by creating a custom template. Before we go down that route, have you tried any of the Marker properties to modify the text style, font, or size? Send me a snippet of your XAML or code so I might reproduce the problem and see what other solution I could offer.
Thanks
Yes, I have tried changing the text style and I can reduce the wrapping by decreasing the font size, but not eliminate it completely. I have attached a sample project that demonstrates the wrapping. I append an "MB" to the marker and the "B" wraps. You could also see the wrapping by increasing the values of the data points (15000 instead of 150).
I Snooped the control and saw that the markers are rendered as TextBlock. If I manually increase the Width of the TextBlock and set the TextAlignment to "Left", I can eliminate the wrapping. However, the Marker does not expose these properties.
Thanks,
John