Fichier Xml n'est pas remis à jour avec le binding XmlDataProvider
Bonjour,
Je ne comprend pas j'effectue un binding sur un fichier xml via un xmlDataProvider, mes données sont bien affichés sur mon interface en revanche les modifications que j'effectue sur mon interface ne sont pas enregistrer sur mon fichier xml, C'est normal? J'ai déja fait du binding avec des ObjectDataProvider avec InotifyPropertyChanged et ça marchait super bien.
voila mon xaml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<Window.Resources>
<ResourceDictionary>
<XmlDataProvider x:Key="ExoConfigXml" Source="F:\GUI\UIConfiguration\ExerciceConfig.xml" XPath="/OPTFM" />
</Window.Resources>
<Grid Background="Black" DataContext="{Binding Source={StaticResource ExoConfigXml}}" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="31" />
<RowDefinition Height="Auto" MinHeight="31" />
<RowDefinition Height="Auto" MinHeight="31" />
<RowDefinition Height="Auto" MinHeight="31" />
<RowDefinition Height="Auto" MinHeight="31" />
</Grid.RowDefinitions>
<TextBox Grid.Row ="0" Grid.Column="1" Text="{Binding XPath=mois_chiffre, Mode=TwoWay }" />
</Grid> |
mon fichier xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<?xml version="1.0" encoding="utf-8" ?>
<OPTFM xmlns="">
<der_semaine>0/0</der_semaine>
<nb_iteration_perim>3</nb_iteration_perim>
<affichage_analyse_ecart>0</affichage_analyse_ecart>
<nb_J_apres_jf>2</nb_J_apres_jf>
<date_system>0</date_system>
<poids_j_feries0>0.000000</poids_j_feries0>
<affichage_objectif>0</affichage_objectif>
<semaine_debut>0</semaine_debut>
<poids_j_feries1>0.000000</poids_j_feries1>
<type_chrono_modele>0</type_chrono_modele>
<poids_j_feries2>0.000000</poids_j_feries2>
<poids_j_feries3>0.000000</poids_j_feries3>
<Periode_hebdo>0</Periode_hebdo>
<poids_j_feries4>0.000000</poids_j_feries4>
<der_mois>8/2008</der_mois>
<mois_chiffre>5</mois_chiffre>
<jour_de_la_semaine>4</jour_de_la_semaine>
<format_jj_mm_aa>0</format_jj_mm_aa>
<affichage_resultat>0</affichage_resultat>
<nb_iteration>3</nb_iteration>
<calendrier />
<pas_affichage_jour>0</pas_affichage_jour>
<mois_debut>3</mois_debut>
<nb_jour_decalage_hist_date_system>0</nb_jour_decalage_hist_date_system>
<nb_day_by_week>7</nb_day_by_week>
<coef_lissage_tendance>0</coef_lissage_tendance>
<nb_J_avant_jf>3</nb_J_avant_jf>
</OPTFM> |