Shax
Shax

Reputation: 4307

How to generate WPF Form using T4?

One of our product requirement is to allow the generation of Search form. So we need to facilitate the user to generate the search form based on the selected data fields.

Now our application is in WPF. Can anybody guide me how to start this thing. I have been told to research on T4, But any kind of help will be appreciated.

Upvotes: 2

Views: 651

Answers (1)

Alex Paven
Alex Paven

Reputation: 5549

Actually T4 won't help you much here I'm afraid; T4 generates code in the IDE (Visual Studio), before compiling and shipping to a customer.

You'll need to look into generating the controls dynamically, most likely through data binding and MVVM as it's cleanest.

Upvotes: 0

Related Questions