Dynamically created GUI

I am starting preliminary design for a general purpose application that will be used in my organization. At the same time, the program should be both generalized and specialized. It will contain widgets that are common to all workflows and unique widgets (or input restrictions) for individual workflows. To avoid the use of 97 different one-time programs, we plan to create a set of schemes for each workflow. At runtime, the user will select his scheme from the server, and the graphical interface will call the correct widgets for their workflow.

This is a C # application that will work in .Net and possibly in Mono. This means that we are learning GTK # in addition to XAML and MonoMac.

We considered writing XSLT for our target GUI toolkit. For example:

  • Glade XSLT to convert our XSD to XML libglade file.

  • XAML XSLT to convert our XSD to XAML.

  • Generic XML format for other toolkits that do not support declarative syntax for the graphical user interface.

  • Class library for directly reading XSD and generating a graphical interface.

So my question is: does this already exist? Is there a set of tools for working with GTK # and libglade or WPF and XAML.

+7
source share
2 answers

Have a look at System.Windows.DataTemplate , which WPF can automatically use (see the DataType property). I think you can extract all the user interface blocks that will be used to create the user interface, and then implement ViewModels and the corresponding DataTemplates. And the result of the UI will be a composite model for viewing these blocks.

+1
source

I did the same using XML. What I am doing is writing a set of properties for each control to an XML file, and then reading it later and regenerating the window.

Some problems that I encountered while doing this

But I was able to complete it. Anyway, I think WPF is better. But if you need an idea, I think I just gave it to you. (Maybe not a good idea)

Luck

0
source

All Articles