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.dllAdditional 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
that is a first chance exception, meaning it is handled in a try/catch block. from the Debug > Exceptions menu in Visual Studio, uncheck the box that says to break on all CLR exceptions.
Thanks. Its still annoying though since I often want to trap exceptions from my own code that may or may not result in a cryptic error message in the web browser if I dont have the debugger catch them.
i also tend to use this setting, so i understand how it can be annoying when a handled exception is thrown in some other library. unfortunately, last i checked there wasn't a way to detect the condition leading to this exception. on the brighter side, this will not happen in the full version since it is part of our trial watermark rendering.