摘要: 在web form中使用autofac 需要集成 Autofac.Web。 全局文件 Global.asax 中配置如下 全局应用程序类上实现IContainerProviderAccessor接口Global.asax代码如下: web.config需要配置如下 autofac web form 阅读全文
posted @ 2018-11-21 10:48 天青蓝 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 废话不说看下面代码你就懂! <ListBoxItem Content="{Binding Path=StuID}" Style="{StaticResource Sty1}" /> <ListBoxItem Content="{Binding Path=StuName}" Style="{Binding Source={StaticResource Sty1}}" /><Style TargetType="ListBoxItem" x:Key="Sty1& 阅读全文
posted @ 2012-03-31 18:32 天青蓝 阅读(281) 评论(0) 推荐(0) 编辑