Consider the following simple ResourceDictionary. Pay especially attention to the freeze attribute.In connection with a StreamGeometry it causes an exception in Blend 4 that displays the message of the ParserParentTypeDoesNotSupportChildren-Resource in Microsoft.Expression.Markup.dll even though the code is working fine at runtime and in VS XAML editor.Without the freeze attribute the exception is not be thrown by Blend.I do have a lot of StreamGeometries that I would like to freeze in XAML. But due to this bug it is not "Blendable".The sample code to reproduce:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"> <!--If you open this dictionary in Blend 4, Blend will fire an exception with the error message: Cannot add content to an object of type 'StreamGeometry'. ... even though it's working fine at runtime and in VS XAML-editor!--> <StreamGeometry x:Key="Geo1" po:Freeze="True" >M 0,0 L 0,1 z</StreamGeometry> <!--This is not freezed and will not cause the exception in Blend 4.--> <StreamGeometry x:Key="Geo2">M 0,0 L 0,1 z</StreamGeometry></ResourceDictionary>
Product?
Product Version?
Issue Type?
Repro Steps? (N/A for Suggestion)
Please wait...