Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an online version of a form which is presently filled out on paper by hand.

I already have gotten to the point where I can retrieve a record (consisting on one instance of each data field on the screen) from an XML file.

Two questions remain at this point.

What would I need to add to the characteristics of a field so that, when the field has been filled in, the cursor automatically proceeds to the next field?

Also, what would I need to do to allow more records to be created to build a database, instead of overlaying the field values in the current record. I assume it would involve the "two-way" designation.

I'm a beginner at WPF, but I've gotten this far.

I would like to complete the whole project using XAML, if possible, instead of using C# code.

Thanks!
Posted

1 solution

"What would I need to add to the characteristics of a field so that, when the field has been filled in, the cursor automatically proceeds to the next field?"

How will the field know it has been filled in? By which I mean how would it know when the user has finished with that field? Generally it won't be able to tell. Even in Windows Forms applications the user has to signal this in some way. The standard way is to Tab, which moves focus to the next field in the 'Tab Order'. As far as I know, this still works in WPF.

"I would like to complete the whole project using XAML, if possible, instead of using C# code."

This is going to be exceedingly difficult, if not impossible. It will only work in exceedingly simple circumstances, where a form has little or no real functionality. For plain old data entry with no frills, you may get away with it using two-way binding.

As far as a Database is concerned you can download SQLServer 2008 Express from Microsoft. MySQL from Oracle, or many others.
 
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