Expression Blend 3 - Invalid XAML when using value converters in DataTemplates RRS feed

  • Question

  • ok. this is sooooo annoying, frustrating and tiring. whenever i use value converters in a DataTemplate, Expression Blend 3 bitches about invalid XAML. yet, the XAML in question is 100% valid, the converters compile and run flawlessly in VS2k8 (both design- and runtime).

    any workarounds, fixes, anything i can try?


    <DataTemplate x:Key="CIPERSONDataTemplate">
    			<Grid Width="Auto" Height="Auto" d:DesignWidth="160" d:DesignHeight="39">
    					<ColumnDefinition Width="18"/>
    				<StackPanel Margin="0" Width="Auto" Grid.Column="1" Grid.ColumnSpan="1">
                        <TextBlock TextWrapping="Wrap" FontSize="12" FontStyle="Italic">
                                    <MultiBinding Converter="{StaticResource GBANameConverter}">
                                        <Binding Path="SN" />
                                        <Binding Path="GN" />
                                        <Binding Path="TITLE" />
                                        <Binding Path="TITLE2" />
                                        <Binding Path="CI_POSITION" />
    					<StackPanel Margin="0" Width="Auto" Height="Auto" Orientation="Horizontal">
    						<TextBlock Text="{Binding Path=CI_POSITION, Converter={StaticResource MyDepartmentSourceConverter}}" TextWrapping="Wrap"/>
    				<Image x:Name="GenderImage" Margin="0" Grid.ColumnSpan="1" Width="16" Height="16" VerticalAlignment="Stretch" Source="{Binding Path=____, Converter={StaticResource MyGenderImageSourceConverter}}"/>

    Thursday, November 12, 2009 8:08 AM

All replies

  • what good for is a forum when there's no one able to help anyways?
    Wednesday, November 18, 2009 11:24 AM
  • I've been wondering the same.  There are people here that are extremely knowledgeable for sure, but the ratio of experts : newbies is very low.

    My opinion is that we just need to hang in there, and eventually the forum will gain traction.  :)  I haven't learned about ValueConverters yet, but now is a good time to start I guess.  :)

    Also, it's more helpful when people that are asking for help post more XAML, rather than just a snippet.  Although some of us aren't experts, if you provide more information, perhaps we can still help figure out the problem.  I can't do anything with this XAML because the static resources for the converters are missing.
    Wednesday, November 18, 2009 4:47 PM