Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Annoying Argument exception when using xamwebchart in a TabItem
posted

Hi,

Trying to get going quickly with xamWebChart, just downloaded the evaluation version and I'm running SL 3.0. I'm trying to embed the chart on a TabItem, but whenever the tab it is on is not visible, I get constant (every second or so) Argument Exceptions thrown by UIElement TransformToVisual:

>    System.Windows.dll!MS.Internal.XcpImports.MethodEx(System.IntPtr ptr = 152514400, string name = "TransformToVisual", MS.Internal.CValue[] cvData = {MS.Internal.CValue[1]}) + 0x1c1 bytes   
     System.Windows.dll!MS.Internal.XcpImports.MethodPack(System.IntPtr objectPtr = 152514400, string methodName = "TransformToVisual", object[] rawData = {object[1]}) + 0xc92 bytes   
     System.Windows.dll!MS.Internal.XcpImports.UIElement_TransformToVisual(System.Windows.UIElement element = {Infragistics.Silverlight.Chart.XamWebChart}, System.Windows.UIElement visual = {SilverlightClient.MainPage}) + 0x85 bytes   
     System.Windows.dll!System.Windows.UIElement.TransformToVisual(System.Windows.UIElement visual = {SilverlightClient.MainPage}) + 0x2b bytes   
     Infragistics.Silverlight.DataVisualization.v9.1!Infragistics.Silverlight.DataVisualization.TrialHelper.a.a() + 0x2d0 bytes   
     Infragistics.Silverlight.DataVisualization.v9.1!Infragistics.Silverlight.DataVisualization.TrialHelper.a.a(object A_0 = null, System.EventArgs A_1 = {System.EventArgs}) + 0x23 bytes   
     System.Windows.dll!System.Windows.FrameworkElement.OnLayoutUpdated(object sender = null, System.EventArgs e = {System.EventArgs}) + 0x145 bytes   
     System.Windows.dll!MS.Internal.JoltHelper.RaiseEvent(System.IntPtr target = 0, uint eventId = 2, System.IntPtr coreEventArgs = 0, uint eventArgsTypeIndex = 0) + 0x11e bytes   

"A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
Additional information: Value does not fall within the expected range."

This even occurs if I create an empty chart and remove it immediately!:

MainPage_Loaded(..)

{

            localChartTest = new Infragistics.Silverlight.Chart.XamWebChart();
            ChartTestPanel.Children.Add(localChartTest);
            ChartTestPanel.Children.Clear();

}

(ChartTestPanel is a child of a tab item, I still get constant exceptions)

Whats going on here? I'd really like to try out your charts but I'm in a hurry...

 

Daniel