1
我得到了以下来源广东话解决嵌套的资源
<UserControl.Resources>
<DataTemplate x:Key="ItemTemplate">
<ListBox ItemsSource="{Binding Inventory}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
ItemTemplate="{StaticResource ItemChildTemplate}"
ItemContainerStyle="{StaticResource ListBoxChildItemStyle}"
BorderThickness="0">
</ListBox>
</DataTemplate>
<DataTemplate x:Key="ItemChildTemplate"> ... </DataTemplate>
<Style x:Key="ListBoxChildItemStyle" TargetType="{x:Type ListBoxItem}">...</Style>
</UserControl.Resources>
我得到:
资源ListBoxChildItemStyle
无法解析。
资源ItemChildTemplate
无法解析。
我根本没有看到问题。 Expression Blend也没有任何建议。
作品 - 非常感谢! – damike 2012-03-03 11:42:47