本文介绍了如何使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提交和取消按钮始终可见
发布评论