MDK-Mockups
MDK-Mockups copied to clipboard
Create generic UI presentation kit for mockups
... so one does not necessarily have to know WPF to add UI support to block mockups.
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.
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.
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.
I've made a new branch mockup-ui-presentation for this issue.
Implemented in #19