Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

Some help with creating dynamic question form

$
0
0
Hi!


I am trying to find out how I can build a WPF desktop app that will look like a question form, and that will be dynamic, meaning everything will be created as the backend user chooses. It is to be used as a sales app for different types of companies, for example funeral agencies, when they sit down with the customer and decide everything from casket to music arrangements and additional stuff.

My first question is with the UI, I am relatively new to WPF, so I am wondering which is the most efficient way to "render" this UI. My idea is that the user can select different "templates", like different versions of the UI to load, some might have 10 categories, the second has 5 and with different questions... you get the idea.

SHould I try and build some kind of XSD file that is a representation of the UI, and then with C# code iterate this UI and build the whole WPF page with code only? Or is there a better way to solve this using XAML?

The basic app should handle

* Groups of questions

* QUestions with different kinds of answers, pictures, yes/no, checkboxlists etc

* The app should calculate totals and grand totals at the bottom.

* The data should be saved along with customer name etc.

I have spent some time googling this to see if I could find something useful that would give me a hint on how these kind of "dynamic" applications are built, but found nothing really helpful. Maybe you guys here have built something similar, or know of a good place to read more?

The backend app and database I have a fairly good idea on how to solve it, but I want to do something clever in the UI to save me. a lot of coding, hopefully benefit from WPF. I have used winforms before, and doing this kind of stuff would require LOTS of code...

I am familiar with MVVM but not sure how that would help me here.

/HEnrik

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>