Pausing to think about next steps after making strong progress in the “Exploring: XamlPad to XamlDesigner” journey in the last 10 days. 3 major things from that Exploring post that haven’t been tackled in XamlPadSample include: Silverlight support, Designer support, and Editor richness.
I’m going to explore Designer support options with this post.
I had originally sketched out this area as:
XAML Step: PropertyGrid, Selection Model, SourcePreservation
- Simple Property Grid
- Selection model enabling selection in View surface or Xaml editor, and synchronized editor.
- Source preservation of XAML with XamlDom based store
But now I’m realizing there may be a few different directions that people may want. This may be because different domains (UI, Workflow, etc…) or different users types (UI Developers, UI Designers, WorkFlow modelers, etc…).
Approaches to XamlDesign Surfaces
View only – never show XAML
A customer recently asked an associate of mine for a WPF hostable designer with a View Only Design surface. This would require a toolbox, interactions to add, move and remove controls, and ability to change values (either with a property grid or “on object” manipulations). Source code preservation may or may not be important in this scenario. Should XML comments be preserved? How about white space?
View or XAML – but never both at the same time
In VS2010 & .NET 4, Windows Workflow Foundation (WF) provides this View or XAML design experience.
View and/or XAML - splitview with interactive view
VS (via “Cider”) and Blend both offer a fully functional split view, with an interactive design canvas + property grid, and an editable XAML pane.
XAML with Preview
XamlPads offer a View which is a preview mode, and an editable XAML pane.
XAML Only
This sounds like notepad. :-) (but maybe you could have notepad with intellisense)
What is your ideal? For UI, workflow, data, other?
Would love to hear thoughts on these various approaches.
For UI, is splitview the preferred model for devs and designers? Or does the XamlPad approach (XAML with Preview) have merit?
For Workflow, are people happy with View or XAML, but never both at the same time?
Any thoughts or feedback in this space?