Dear all,
I need to get you though on a customer complex project I have to build.
In traditional WPF project I have done so far , I define the layout interface of the application by predefining grid area where I will insert different content.
Now I have a customer request project, where my customer would like to get a complete flexible application. By complete flexible application, my customer would like to be able to define by him self the area on the screen where Visual component
will be place.
For that I have been guide from a previous post to explore "Composite UI" mechanism that PRISM can be provide . By exploring how flexible design need to be implemented, we need to define region area, and then map those region with a component.
That seems to be too simple for my customer. To add more stress on this, my customer would like to be able to define the Region area by himself with a tool, then decide what to insert in the define region.
For that, we have define a Grid layout on paper which looks as below :
![]()
Each small square in this grid represent the smallest area which is a 96 by 96 pixels size. Then the whole grid represent a ful HD resolution.
Starting from that grid we can use it as a canvas to place on that grid where we want to place our region.
For instance if my user want to place a button in top left corner of which as a Width of 192 and Height of 96, he will draw the region starting from Top corner of the grid which will occupy 2 cell of 96px in with and 1 cell of 96px in height.
Then once the region area is defined, my customer will select a component from a library button that he would like to attached to that predefined region.
So at the end we should have a kind of configuration file, which could be in XML formt with the following sample mapping :
RegionName ="Button1"; Colomn=0; Row=0; ColSpan=2 MapToView=ButtonView
Then once the customer as define all his region on the screen and map to a component (View), the configuration layout file is store somewhere, available to the client application.
Then the WPF client application, should then read that config file and build out of this the final layout dynamically. And of course all logic is plugged automatically between each component.
The more I think on this, and the more I think my customer would like to build a light version of Blend :-(
I need your though about this approach :
- how do you see the way to build the confutation tool for designing region area ?
- What could be the sample structure of the resulting XML configuration file ?
- Do you see any issue on building the final layout from client application side ?
Thanks for your advise and help on this as I start to be completely lost and need to be sure that all this will work fine or should work fine.
regards
serge