【发布时间】:2012-09-11 03:57:28
【问题描述】:
我的程序运行良好。
<Window.Resources>
<ResourceDictionary Source="GlassButton.xaml">
</ResourceDictionary>
</Window.Resources>
但在“MainWindow”上添加DataGrid后显示字符串错误:
<ResourceDictionary Source="GlassButton.xaml">
添加DataGrid后Window.Resources部分发生了变化,变成了这样:
<Window.Resources>
<ResourceDictionary Source="GlassButton.xaml">
<my:DepartmentDataSet x:Key="DepartmentDataSet" />
<CollectionViewSource x:Key="DepViewSource" Source="{Binding Path=DEP, Source={StaticResource DepartmentDataSet}}" />
</ResourceDictionary>
错误信息显示: “属性“System.Windows.ResourceDictionary.DeferrableContent”称为异常。”:行数“10”和行数“29”。 致以最诚挚的问候
【问题讨论】:
标签: c# .net wpf xaml resourcedictionary