强制 Silverlight DataForm 进入正常模式
我正在尝试使用 DataForm 来显示数据。 CurrentItem 绑定到我的 ViewModel 上的一个属性。它绑定的属性是一个简单的 poco。我创建了一个自定义只读模板。一切工作正常,除了我不知道如何使 DataForm 显示“启用”或处于正常状态。数据不可编辑,显示为只读。
我能够让它以正常状态显示的唯一方法是编辑模板并将DisabledVisual 边框的不透明度设置为100%。
有没有更好的方法来执行此操作或使用 DataForm 来显示不可编辑但仍显示为启用的数据?
I'm trying to use the DataForm to display data. The CurrentItem is bound to a property on my ViewModel. The property it is bound to is a simple poco. I've created a custom readonly template. Everything works fine except I can't figure out how to make the DataForm appear "Enabled" or in the Normal state. The data isn't editable, it's displayed as readonly.
The only way I've been able to get it to display in the Normal state was to edit the template and set the Opacity to 100% for the DisabledVisual border.
Is there a better way to do this or use the DataForm for displaying data that isn't editable but still appear enabled?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这修复了它:jedwards14.blogspot.com/2011/02/silerlight-data-forms-with.html。我确实有一个忙碌指示器,显然这仍然是问题:silverlight.codeplex.com/workitem/4729
This fixed it: jedwards14.blogspot.com/2011/02/silerlight-data-forms-with.html. I do have a busy indicator, apparently this is still and issue: silverlight.codeplex.com/workitem/4729