This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, 1) When use the DataBinding for Axis's Foreground, (i.e.Foreground="{Binding AxisColor}"), when the AxisColor is changed, the Axis's title is changed sometimes but not always though, and the axis's tickmarker is not changed. 2) When use the DataBinding for Axis FontStyle, and FontWeight {i.e. FontStyle="{Binding MyFontStyle}"), when the MyFontStyle or MyFontWeight is changed, they are not changed on display if at the same time the FontFamily is changed. 3) When make the binding using code for Axis LabelFormatProperty, it seemed much slower than using binding on xaml. Here is what I did: Binding binding = new Binding("MyLabelFormat"); MyXAxis.SetBinding(ChartAxis.LabelFormatProperty, binding); You can reproduce it using the examples on Scatter Series by maximize the window(set the data point for each series to 100 to see the effects):
We are using WPF element 5.1 July 24 2012 nightly build. Can you fix them? |
|
|
Hello Gordon I'll get back to you about this early next week. Jason Fauchelle |
|
|
Hello Gordon 1) I have not been able to reproduce the Title Foreground binding issue. Are you able to describe additional actions that can cause the Title foreground to fail sometimes but not others. A repro project will help me look into it more. To change the color of the tick marks and axis line, you'll need to set the AxisLineStyle and MajorTickMarkStyle properties to customize the styles. Here is an example of a simple tick mark style that will keep the color of the tick marks bound to the Foreground property of the ChartAxis:
2) I also have not been able to reproduce this issue. When I change Both the FontStyle and FontFamily properties through a binding, they are displayed correctly. What Font Family are you changing it to? Also, if you can send a repro project for this also, I'll be able to look into it more. 3) I observed the bad performance when setting the binding in both xaml or code. I have resolved this performance issue which you can get through the next nightly build. Thanks for pointing this out. Jason Fauchelle |
|