Any Metadata driven UI sample code?

2019-03-17 07:57发布

I am in the process of designing a .net windows forms application that uses metadata to drive the UI. Apart from finding http://msdn.microsoft.com/en-us/library/ms954610.aspx, I have nothing much to look forward to. Anyone here worked on metadata driven User interfaces? What are the implications of following this methodology and any pointers would be greatly helpful.

4条回答
贼婆χ
2楼-- · 2019-03-17 08:20

The most obvious answer would be that Microsoft have themselves embraced this concept through their use of Xaml in Windows Presentation Foundation which replaces WinForms (to an extent).

If you want to stick to a WinForms, you may want to consider MyXaml which is kind of a homage to Xaml for WinForms!

查看更多
疯言疯语
3楼-- · 2019-03-17 08:25

Check the Andromeda project out, which does so extensively. Too bad the stack isn´t .NET friendly (PHP, Postgres, Perl).

查看更多
唯我独甜
4楼-- · 2019-03-17 08:29

You may want to check out Evolutility CRUD framework. It is an open source metadata driven framework for CRUD generating all UI at run-time.

It comes w/ source code (in C# and JS) and many samples.

http://www.evolutility.org

查看更多
欢心
5楼-- · 2019-03-17 08:29

You may try this with HTA. Sometime back I created a metadata driven application using HTA and XML. I created XAML like structure and HTA-VBScript code to parse this structure and render diffent types of UI elements along with validations.

查看更多
登录 后发表回答