Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7028677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:26:25+00:00 2026-05-28T00:26:25+00:00

when the Silverlight dataform’s property autogeneratedfields is set to true everything works fine (the

  • 0

when the Silverlight dataform’s property autogeneratedfields is set to true everything works fine (the button behavior is correct, meaning as soon as I start typing it gets enabled. So, now i have a scenario where i had to customize the look of the dataform and set autogeneratefields to false ( i am manually using datafields in xaml) , when i type in something in a textbox, the commit button is not enabled, it only gets enabled when i put the mouse in the next textbox. Any help appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:26:26+00:00Added an answer on May 28, 2026 at 12:26 am

    Try making your object an IEditableObject (System.ComponentModel).

    What’s cool about the DataForm is that it tries to communicate with the object with the current state of what’s going on. If AutoGenerateFields is being used, then there is something that is between the templating engine of the dataform and the object it is trying to use, thus making completing the loop for you.

    If there isn’t an interface (because you provided the template, yourself) to an IEditableObject available, the DataForm doesn’t know it is actually editing an object until a Binding is updated. In Silverlight, Bindings are updated only AFTER the a TextBox has lost focus.

    The point of an IEditableObject is to tell objects that this guy knows how to Cancel and Save appropriately. This is especially important when the MSDN documentation tells us we need to be able to rollback the object to its original state. So when you begin your edit, you can keep a copy of it around. Then, when cancel is clicked, you will be able to rollback your changes by copying the data back. I’d check out the MSDN article, they do a good job explaining it.

    If you make your objects an IEditableObject, then this behavior may return to the way you want. If not, then I do not understand the problem correctly and would love to see the code for a small sample.

    Also, feel free to check out the source code for the DataForm on CodePlex: http://silverlight.codeplex.com/SourceControl/changeset/view/71382

    I’ve had to browse the code many times to figure something out.

    Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a Silverlight 4 dataform and attempting to use the inbuilt add button
I can't seem to get a transparent background for a DataForm in Silverlight 3
How do I change the spacing between fields in a DataForm in Silverlight? I've
Im looking for a control like the DataForm which is new in Silverlight 3
Silverlight works on client side so putting any sensitive data like connection strings, passwords
I want the change the description of the labels on my silverlight dataform which
I have a Silverlight 3 datakit:DataForm bound to a ADO.NET Data Service 1.5 CTP2
I have a silverlight combobox inside of a dataform as follows: <dataControls:DataForm x:Name=newScheduleMasterForm Height=350
I am using Dataform to show a object in my Silverlight application. It is
Silverlight works on OSX and Silverlight uses .NET Framework (at least a large portion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.