社区
WPF/Silverlight
帖子详情
Domain operations cannot be started at design time
abis
2010-07-09 10:35:28
做了一个自定义控件,下拉框,框中的项是从数据库中取得。控件做好后往主窗体上拖的时候,就出现了这个提示。请问如何解决?
...全文
160
4
打赏
收藏
Domain operations cannot be started at design time
做了一个自定义控件,下拉框,框中的项是从数据库中取得。控件做好后往主窗体上拖的时候,就出现了这个提示。请问如何解决?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
莫逍遥
2011-04-12
打赏
举报
回复
[Quote=引用 1 楼 sunpire 的回复:]
在构造函数内不要出现调用业务逻辑(数据库)的代码,控件在设计器中被呈现时,会执行构造函数中的全部代码的,如果是模板化控件,则还会执行 OnApplyTemplate() 中的代码
[/Quote]
如果不在构造函数中做业务逻辑调用,那么在什么地方调用?
dale01
2010-10-17
打赏
举报
回复
Very Good!
abis
2010-07-09
打赏
举报
回复
已经解决,多谢。40分全拿去
Sunpire
2010-07-09
打赏
举报
回复
在构造函数内不要出现调用业务逻辑(数据库)的代码,控件在设计器中被呈现时,会执行构造函数中的全部代码的,如果是模板化控件,则还会执行 OnApplyTemplate() 中的代码
ramin 2.2 for xp
feature cannot be used. Multiple Connections Support Radmin server supports simultaneous multiple connections to the same remote screen. Full-Screen, Scaled and Windowed View Modes Full-screen ...
Silverlight - 用户控件与设计时(
Design
Time
)错误
用Blend 或VS 2010的设计视图打开一个用户控件,如果出现错误(最常见的是空引用错误),而debug时程序运行正常,那很可能是由于设计时的一些限制造成控件无法在设计器中正常打开。如何避免呢?...
安装和配置 Windows Server 2022 域服务
安装和配置 Windows Server 2022 Active Directory
Domain
Service 课程,通过这一个课程的介绍,我们就能够理解 Active Directory
Domain
Service 服务基本的应用场景,基本的组件和架构,并且在 Windows Server ...
Domain
Driven
Design
Domain
Driven
Design
and Development In Practice 原文地址:http://www.infoq.com/articles/ddd-in-practice Background
Domain
Driven
Design
(DDD) is about mapping business
domain
concepts into ...
Domain
Driven
Design
and Development In Practice
http://www.infoq.com/articles/ddd-in-practice
Domain
Driven
Design
and Development In Practice
Domain
Driven
Design
(DDD) is about m
WPF/Silverlight
8,738
社区成员
12,027
社区内容
发帖
与我相关
我的任务
WPF/Silverlight
WPF/Silverlight相关讨论
复制链接
扫一扫
分享
社区描述
WPF/Silverlight相关讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章