i have this code:
<Grid>
<Grid.Resources>
<XmlDataProvider x:Name="ScenesXmlName" x:Key="ScenesXml"
XPath="scenari-list/scenario"
Source="myXml.xml"/>
</Grid.Resources>
<ComboBox Name="ScenariCombo"
ItemsSource="{Binding Source={StaticResource ScenesXml}}"
DisplayMemberPath="@name"
SelectionChanged="ScenariCombo_SelectionChanged" />
</Grid>
Combobox items are loaded correctly.
What i wanto to know is if there is any way to update ScenariCombo.Items when i update myXml.xml (so the itemsource).
Thanks in advance!
I finally understood this.
It was easier than expected.
You have to force the reloading of the xmldataprovider: