views:

22

answers:

0

Hi,

I have a custom winforms control that builds a UI based on an XML file and Linq query. The XML has general nodes with the size, background image etc and collections of nodes for the actual controls themselves. the custom control populates the controls acocrding to an Xelement passed at runtime.

I am now trying to learn WPF with Blend and wanted to see if I can make a WPF version of the control. SInce the data binding in WPF seems really great, i wanted to check what was the correct approach to doing this correctly. I have read lots of tutorials where the xml file is added to the project and bound directly but not as a property.

Would I have to expose an Xelement property in the code-behind and bind to a clr object with blend rather than an xml source? or do it in visual studio?