【发布时间】:2013-04-04 14:24:27
【问题描述】:
我正在将 imagebrush 源绑定到我在 xaml 中的数据模板。 数据模板是--->
<DataTemplate x:Key="UserGridListTemplate">
<Grid Height="140" Width="155">
<Grid.Background>
<ImageBrush ImageSource="{Binding imagePath}"/>
</Grid.Background>
</Grid>
</DataTemplate>
和xaml--->
<ListBoxItem ContentTemplate="{StaticResource UserGridListTemplate}" >
<local:MultiLineItem ImagePath="/ShareItMobileApp;component/Images/facebook-avatar(1).png"/>
</ListBoxItem>
但发生异常 AG_E_PARSER_BAD_PROPERTY_VALUE [行:3 位置:33]
谁能帮我解决这个问题???
【问题讨论】:
标签: c# windows-phone-7 xaml datatemplate