Hi,
I am big into code generation for the service/data layer of my apps. What I would really love to do is generate some basic WPF Controls, Data Templates, or some other XAML code based on the metadata I use to generate my service/data layer. EDIT: This generation is done before compile time.
What I envision is being able to generate a control which has basic controls in it TextBlocks, Labels, Date Pickers, Textboxes, Checkboxes, etc based on types of my data.
The big thing I am missing is to somehow never touch that generated XAML code and control the layout completely outside of it. In the web world I could technically do this by generating "semantic" html and then using CSS selectors to select nodes and position them. With CSS/HTML I could completely change the layout and never touch the generated html.
Is there someway in WPF to control layout of a Control or Data Template from outside of that code? (Selectors, Visual Inheritance, etc?)
Thanks! Jon