Hi, everyone and thanks in advance. I have a WPF DataGrid project using xmldataprovider to populate the datagrid. using a simple xml file - setlists.xml. In Window.Resources, If I set the source of the xml file to a folder such as d:\xml files\setlists.xml the datagrid populates perfectly. However, if I include the xml file in the project solution the datagrid won't populate.
This works:
<XmlDataProvider x:Name="AlanDb" x:Key="mysets" XPath="Details" Source="D:\xml files\setlists.xml">
This fails:
<XmlDataProvider x:Name="AlanDb" x:Key="mysets" XPath="Details" Source="setlists.xml">
Using Visual Studio 2022
Any suggestions would be appreciated.
Thanks
Alan