Hi!
How can i add a control to a Silverlight Grid control without blocking the user interface. I am creating a complicated Chart control and when i call myGrid.Children.Add(myChart) the whole page is blocked and not responding. Any idea guys?
Hi!
How can i add a control to a Silverlight Grid control without blocking the user interface. I am creating a complicated Chart control and when i call myGrid.Children.Add(myChart) the whole page is blocked and not responding. Any idea guys?
Have you tested whether this is a XAML rendering issue or instantiating the chart control that is causing the blocking?
What happens when you set the Visibility of the chart to Collapsed and add that to the grid? Obviously you won't see it on the UI, so you'll either need to step through it via debug or simply pop up a MessageBox before and after you call the Add(myChart).
If it is the XAML rendering of the chart, I'd dive deeper into the XAML that chart control and look for optimizations (if you can, what chart control is this?).
A few things you could try:
Those are my only ideas.