<ItemsControl
Grid.Row="2"
ItemsSource="{Binding Caracteristics,UpdateSourceTrigger=PropertyChanged}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel MaxWidth="700"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBox
Text="{Binding Value}"
wpf:HintAssist.Hint="{Binding Key}"
Style="{DynamicResource MaterialDesignFloatingHintTextBox}"
MinWidth="150"
MaxWidth="150"
Margin="15"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
and in the ViewModel
public Dictionary<string,string> Caracteristics { get; set; }
I want to change the strings of the dictionaries from the textbox
this is the full Exception:
InvalidOperationException: A TwoWay or OneWayToSource binding cannot work on the read-only property 'Value' of type 'System.Collections.Generic.KeyValuePair`2[System.String,System.String]'.