Is is short work using XAML to have the types of controls configured/controlled by the underlying data. I see plenty of examples of configuration of a control's look/feel based on data content; I am looking to base the control type on the associated data/properties.
. Value returns Bool object, the control should be a button
. Value returns Int32 object, the control should be a textbox
. The data could expose a property, Widget, that would specify button, textbox, etc
I suppose one could write this in C# pretty readily or cobble together a ContentControl that contains all possible button, textbox, etc combination and the data could control which are visible but these seem such hacks. I thought I would ask the experts if a more natural xaml solution exists.