我收到此错误但我看不出我的xaml有什么问题。我高音检查了一下。有什么想法吗?
<controls:PanoramaItem Header="first item">
<!--Double line list with text wrapping-->
<ListBox Margin="0,0,-12,0" ItemsSource="{Binding Items}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="0,0,0,17" Width="450">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<Image Source="{Binding Url}" Stretch="None" HorizontalAlignment="Left" Grid.Column="1" MouseEnter="Image_MouseEnter"></Image>
<TextBlock Text="{Binding Title}" HorizontalAlignment="Right" TextWrapping="Wrap" Grid.Column="2" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</controls:PanoramaItem>
答案 0 :(得分:2)
您确定代码中存在MouseEnter="Image_MouseEnter"
事件吗?大多数情况下,由于
答案 1 :(得分:0)
找到它,Image_MouseEnter设置为私有而非公开。解析器错误指向错误的方向:)谢谢Haris Hasan