Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Any way to use databinding for the source of the FieldLayout?
posted

So I know that I can put multiple fieldlayout nodes in my XAML and then, programmatically, change which one is used in the AssigningFieldLayoutToItem event.  But what I'd like to do is something a little more databinding-y. 

Is there any way that I could create a property on my underlying object (serving as the DataContext of the window) that is either a FieldLayout object or a collection of Field objects and use databinding to hook up the grid's fieldlayout to that property?

That would certainly be a far more flexible approach.  Let me know if anyone out there has any ideas.