Click here to Skip to main content
15,887,450 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
<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
Posted
Updated 25-May-14 20:39pm
v2

1 solution

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".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900