TeeChart.Silverlight dll bug in build 2011.07280
Posted: Mon Aug 08, 2011 1:18 pm
Last week I downloaded the Steema TeeChart for .NET 2011 4.1.2011.07280 version and used the Silverlight dll,
while creating a workaround for http://www.teechart.net/support/viewtop ... =4&t=12470
I Created the following code
Xaml:
This code removes the rowdefinitions from the "chartContainer" grid and adds new rows with Tcharts.
In the latest (07280) build I got an error "Value does not fall within the expected range". (Wich means in this case there 's something with a duplicate name in the object or visual tree)
This error only occurs when i first Clear the Rowdefinitions of the chartContainer Grid.
When i only add new rowdefinitions with Tcharts this problem does not occur
Now i'm working 2 days on this problem and could not get this fixed.
I could not find an error in the code i created, I think this code should work correctly.
Finally I decided to use the previous build of the TeeChart.Silverlight dll (06280).
The problem i described does not occur in this version of TeeChart.
while creating a workaround for http://www.teechart.net/support/viewtop ... =4&t=12470
I Created the following code
Xaml:
Code: Select all
<Grid Grid.Column="1" Name="chartContainer">
</Grid>
Code: Select all
void ChartsLoaded()
{
chartContainer.Children.Clear();
chartContainer.RowDefinitions.Clear();
int i = 0;
foreach (TChart tc in [ObservableCollection<TChart>])
{
chartContainer.RowDefinitions.Add(new RowDefinition());
Grid.SetRow(tc, i);
chartContainer.Children.Add(tc);
i++;
}
}
This code removes the rowdefinitions from the "chartContainer" grid and adds new rows with Tcharts.
In the latest (07280) build I got an error "Value does not fall within the expected range". (Wich means in this case there 's something with a duplicate name in the object or visual tree)
This error only occurs when i first Clear the Rowdefinitions of the chartContainer Grid.
When i only add new rowdefinitions with Tcharts this problem does not occur
Now i'm working 2 days on this problem and could not get this fixed.
I could not find an error in the code i created, I think this code should work correctly.
Finally I decided to use the previous build of the TeeChart.Silverlight dll (06280).
The problem i described does not occur in this version of TeeChart.