如何使DataForm提交和取消按钮始终可见 [英] How to make DataForm commit and Cancel button always visible

查看:91
本文介绍了如何使DataForm提交和取消按钮始终可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys ..



i想要使提交和取消按钮始终可见并在数据窗口中启用。

以下是我正在使用的代码,但提交和取消按钮并不总是启用。

当我在数据字段中输入任何值时,它将启用。但我希望它应该始终启用。



< data:DataForm x:Name =   DeliveryForm Margin =   4标头=   {Binding Delivery_Label.name} AutoGenerateFields =   False AutoEdit =   True AutoCommit =   False CommandButtonsVisibility =  提交,取消 EditEnded =   DeliveryForm_EditEnded 
KeyUp = DeliveryForm_KeyUp >







如果有人有任何建议,请给我。





谢谢

Sandeep

解决方案

您可能需要在xaml中创建自己的按钮,以保持按钮始终如您所愿。

for you you需要隐藏自动生成的命令按钮,方法是删除 CommandButtonsVisibility =提交,取消或设置 CommandButtonsVisibility =无

Hello guys..

i want to make Commit and Cancel button always visible and enable in the DataForm in silvelight.
following is the code which i am using but the Commit and cancel button is not always enable.
When i enter any value in the datafield then it goes enable. but i want it should be always enable.

<data:DataForm x:Name="DeliveryForm" Margin="4" Header="{Binding Delivery_Label.name}" AutoGenerateFields="False" AutoEdit="True" AutoCommit="False" CommandButtonsVisibility="Commit,Cancel" EditEnded="DeliveryForm_EditEnded"
KeyUp="DeliveryForm_KeyUp">




Please if any one has any suggestion then please give me.


Thanks
Sandeep

解决方案

You may need to create your own buttons in xaml to keep the buttons always as you wanted.
for that you need to hide the auto generated command buttons by removing CommandButtonsVisibility="Commit,Cancel" or setting CommandButtonsVisibility="None".


这篇关于如何使DataForm提交和取消按钮始终可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆