I have a binding in my view as follows
<TextBox Grid.Row="3" Grid.Column="1" DataContext="{Binding FileStore}" Text="{Binding Path=StoreId}" Foreground="Black"/>
FileStore.StoreId is a string. In my code I changed the StoreId at some point
FileStore.StoreId = "1234";
But the view is not updating the TextBox content. I could think of one possible reason-as string is immutable the assignment allocates a new string.So, the Textbox is still binding to the old instance. Do you agree? How can I tackle the situation?
Your
FileStoreclass should implementINotifyPropertyChanged, so that the binding engine is notified when the value of a property is changed