I am trying to align my labels in the center using:
UltraCategoryChart1.XAxisLabelHorizontalAlignment = Alignment.HorizontalCenterAlign
But they are slightly off center. It's not the end of the world, but slightly annoying. Any fix for this?
UltraCategoryChart1.XAxisInterval = 1 UltraCategoryChart1.XAxisLabelFontSize = 16 UltraCategoryChart1.XAxisLabelLeftMargin = 14 UltraCategoryChart1.XAxisLabelTextColor = New SolidColorBrush(Color.Black) UltraCategoryChart1.XAxisLabelTextStyle = FontStyle.Bold UltraCategoryChart1.XAxisLabelVisibility = Infragistics.Portable.Components.UI.Visibility.Visible UltraCategoryChart1.XAxisLabelHorizontalAlignment = Alignment.HorizontalCenterAlign
Thank you for your post. Looking onto the code looks like XAxisLabelLeftMargin is causing this behavior, as a test can you comment out XAxisLabelLeftMargin property and check if you got your x Axis labels aligned center ?
If not then do you have any other margin px set anywhere else in the project ? Can you share you demo sample for testing?
Yes, that was it, thank you!