I've been building a prototype (SketchFlow) SL3 application using Expression Blend 3 RTM and the Telerik RadControls for Silverlight (see exact versions at bottom).
I had the basic layout completed, packaged and had a few users look at it. Since then, I've updated the code to load a gridview from the built-in Expression sample data tool. However, today I've started to get some odd behavior in Expression Blend. Two problems noticed:
- Headers on RadPane started disappearing in the design layout. The corresponding XAML has the property set. If I edit the Header property in the Properties toolpane or edit the value in the XAML, that tab's header displays in the design window until I reload the app or build it (I can send the XAML if you want to see that).
- An Expression design-time exception that seems to be sourced in the following XAML:
<telerikDocking:RadDocking.DocumentHost>
<telerikDocking:RadSplitContainer>
<telerikDocking:RadPaneGroup>
<telerikDocking:RadDocumentPane Title="Welcome">
<Grid x:Name="grdWelcome">
<ScrollViewer Margin="8,8,8,8">
<TextBlock TextWrapping="Wrap" FontSize="14.667"><Run FontWeight="Bold" Text="Welcome to the prototype!"/><LineBreak/><Run Text=""/></TextBlock>
</ScrollViewer>
</Grid>
</telerikDocking:RadDocumentPane>
</telerikDocking:RadPaneGroup>
</telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking.DocumentHost>
With the above code in the page, after working with the page awhile, I get the following error in Expression (can't determine the root cause):
at System.Windows/System.Windows.Media/VisualTreeHelper.cs
InvalidOperationException: Reference is not a valid visual DependencyObject
At this point, my DocumentHost control (and all child controls) disappears from the Expression Objects and Timeline tree and from the design surface. The XAML is still there. I've tried shutting down and restarting but it's still missing. I looked for invalid characters in the XAML but didn't find any within and around that code block. If I cut out that block of code, and paste it back in, it reappears in the design surface but not the tree. Selecting any part of the controls in that code block selects the parent radDocking control. In order to get it working again, I have to remove that code block and then recreate it from the Expression Asset area. I can then build and work with the solution for a awhile (until I get the InvalidOperationException error again).
I am using:
- Microsoft Expression Blend 3 + SketchFlow v3.0.1927.0
- Telerik RadControls for Silverlight 2009_3_724 Trial
- Visual Studio 2008 v9.0.30729.1 SP
- Windows Server 2008 Standard Edition SP1
Best Regards,
Paul from Minneapolis