I've just read “How to perform WPF Data Binding using LINQ to XML” and this leads me to the question, ObjectDataProvider
(with LINQ to XML) or XmlDataProvider
---which do you prefer? Should I just fall in love with the XAML-based LINQ to XML approach or are there performance issues here?
This is a snippet from the aforementioned article:
<ObjectDataProvider x:Key="LoadedBooks" ObjectType="{x:Type xlinq:XElement}" MethodName="Load" >
<ObjectDataProvider.MethodParameters>
<system:String>d:\bala\mydata.xml </system:String>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>