如何使DataForm提交和取消按钮始终可见

编程入门 行业动态 更新时间:2024-10-09 05:16:18
本文介绍了如何使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提交和取消按钮始终可见

本文发布于:2023-11-28 01:07:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640363.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   DataForm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!