how can i make an ivalueconverter fire again. if i resize the screen, causing the xamdatachart to be redrawn the converter runs. I need to force a redraw or figure out how to force the converter to run. Any ideas?
Thank you i actually figured it out after your last post. I did something very simliar to this post. Thank you!
Hello Pete,
Here is a code snippet of the buttons’ event handlers:
private void Button_Click(object sender, RoutedEventArgs e)
{
ButtonChecked = true;
YAxisEvents.RenderAxis();
}
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
ButtonChecked = false;
I have only called the RenderAxis method for the Y axis so that it is refreshed and the new values are displayed.
Please let me know if you need additional assistance on this.
Is there anyway you could edit my project to show me how this will work?
you can call RenderSeries or RenderAxis to indicate to a series or axis that it needs to refresh if you've changed something that doesn't directly invalidate the axis/series.
Attached is an example. On button changes the lables to old and one to new. The change only takes effect if you click the button, close the app and open it again. i need the labels to update when the button click happens.