We are doing some customization on UpdateLayout on xamlChart (i.e. adding custom marker, changing rectangle color etc) and reason we chose UpdateLayout (vs Loaded) beuacse out usercontrol will be NOT be rendered on the screen but will be printed directly to XPS document (which further means no Loaded event will be called) It seems some of our customization doesn't seem to be working in this way, but if display the user control on screen, everything seems to be working i.e. Markers are properly aligned, Y-axis scale is correctly formatted using converter on DataTemplate on YAxisNumeric Label.
This would mean there is some post rendering is happening during/after load event
I was wondering if we could subscribe any event which marks the end of entire rendering
The issue with the chart being hard to print is something we are addressing in the next volume release. In the meantime there are some work arounds. I will get back to you.
Well, the issue is not pertaining to printing at all, may be I didn't put it right.
As part of our requirement, we are not rendering the chart on screen but directly into the XPS document, which has been working perfectly all right, including infragistic charts(we have been using other bunch of third party controls and our own custom controls)
As part of chart development, we have to add few more customization than what currently being offered from xamlChart e.g. Changing rectangle color based on value, position and other view model attributes.The solution which provided to us is not good enough to handle all these possible scenarios ( http://forums.infragistics.com/forums/p/51914/273825.aspx#273825) so we end up subscribing updateLayout event and using Series.RootCanvas, accessed the rectangle object model and directly manipulating it. So far so good.... but as part of other requirement we have to customize the Y axis scaling, so we added following converter
<ig:NumericYAxis.Label>
<DataTemplate>
<TextBlock Text="{Binding Item,Converter={StaticResource AxisConverter}}" />
</DataTemplate>
</ig:NumericYAxis.Label>
But this doesn't work since we are overriding updateLayout for rectangle customization. If we comment out updateLayout, this converter does work. We found similar issue, when we have to add our own custom markers
This further leads us to the conclusion that some kind of post rendering must be happening after Load (or during the async callback of certain dependency properties), so we were wondering if there is a event we could subscribe which would be fired when all the rendering is completed.
I understand this is not a usual situation, but please do let us know if you need any specific example, sample project, in order to isolate the issue
thanks
-Subhash