I have a particular XAML view that is crashing both Visual Studio 2010 and Expression Blend 4 when I open it. The exception is a StackOverflowException. It appears to be an infinitely recursive call (see attachment for actual stack screenshot):
I pruned it down to just a RadTabControl in a UserControl with nothing else. Having the Windows7 theme present in my project references makes it crash. If I remove the reference, it works.
Then I tried a clean-room Blend project with the same thing -- singular RadTabControl with Windows7 theme -- and it did NOT crash.
So, unfortunately, I can't reproduce this in a clean-room where I can post the example for Telerik to fix. I'm hoping that someone has also experienced this and knows a solution. Perhaps this may also give hope to future web searchers looking for people with the same problem.
- ...
- [Native to Managed Transition]
- [Managed to Native Transition]
- System.Windows.DependencyObject.ClearValueInternal(...)
- Telerik.Windows.Controls.StyleManager.OnThemeChanged(...)
- Telerik.Windows.PropertyMetaData.PropertChangeHook.OnPropertyChanged(...)
- System.Windows.DependencyObject.RaisePropertyChangeNotifications(...)
- System.Windows.DependencyObject.UpdateEffectiveValue(...)
- System.Windows.DependencyObject.InvlaidateProperty(...)
- MS.Internal.FrameworkCallbacks.InvalidateProperty(...)
- [Native to Managed Transition]
- [Managed to Native Transition]
- MS.Internal.XcpImports.SetValue(...)
- System.Windows.DependencyObject.SetValue(...)
- Telerik.Windows.Controls.Theme.Apply(...)
- Telerik.Windows.Controls.StyleManager.OnThemeChanged(...)
- Telerik.Windows.PropertyMetaData.PropertChangeHook.OnPropertyChanged(...)
- System.Windows.DependencyObject.RaisePropertyChangeNotifications(...)
- System.Windows.DependencyObject.UpdateEffectiveValue(...)
- System.Windows.DependencyObject.InvlaidateProperty(...)
- MS.Internal.FrameworkCallbacks.InvalidateProperty(...)
- ...
I pruned it down to just a RadTabControl in a UserControl with nothing else. Having the Windows7 theme present in my project references makes it crash. If I remove the reference, it works.
Then I tried a clean-room Blend project with the same thing -- singular RadTabControl with Windows7 theme -- and it did NOT crash.
So, unfortunately, I can't reproduce this in a clean-room where I can post the example for Telerik to fix. I'm hoping that someone has also experienced this and knows a solution. Perhaps this may also give hope to future web searchers looking for people with the same problem.