malware-dev / MDK-Mockups

A set of community driven mockup classes to enable the simulation of Space Engineers ingame scripts in Visual Studio
MIT License
18 stars 9 forks source link

Create generic UI presentation kit for mockups #4

Open malware-dev opened 6 years ago

malware-dev commented 6 years ago

... so one does not necessarily have to know WPF to add UI support to block mockups.

bls220 commented 6 years ago

What did you have in mind for this presentation layer? Thinking of a MVVM architecture with base usercontrols for all the displays? I'm just trying to get an idea of what the plans are. I have begun creating the skeleton of the app, but without any real presentation layer.

malware-dev commented 6 years ago

Well the idea is to have an individual control per block type, with a fallback for each inheritance point, yeah. I'm thinking that the block mockups will be the models directly. The core idea must be for this system to be near effortless for the end user to start using, and as easy as possible for contributors to add new block mockups. Those must be core values.

kwilliams1987 commented 5 years ago

I started implementing this via the IMockupDataTemplateProvider interface, however it currently only returns the name of the WPF DataTemplate that the page should use.

Perhaps a better approach would be to leverage the MetadataTypeAttribute provided by .NET to allow the UI to know how to present each of the class properties to the user.

kwilliams1987 commented 5 years ago

I've made a new branch mockup-ui-presentation for this issue.

kwilliams1987 commented 5 years ago

Implemented in #19