MDK-Mockups icon indicating copy to clipboard operation
MDK-Mockups copied to clipboard

Create generic UI presentation kit for mockups

Open malware-dev opened this issue 6 years ago • 5 comments

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

malware-dev avatar Apr 04 '18 10:04 malware-dev

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.

bls220 avatar Aug 22 '18 22:08 bls220

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.

malware-dev avatar Aug 23 '18 05:08 malware-dev

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 avatar May 07 '19 10:05 kwilliams1987

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

kwilliams1987 avatar May 13 '19 09:05 kwilliams1987

Implemented in #19

kwilliams1987 avatar May 14 '19 06:05 kwilliams1987