I was looking for my little heart and it is possible that I missed something important and obvious.
I have a BitArray and a series of flags attached to elements in an array, for example:
<CheckBox IsChecked="{Binding Permissions[0]}" /> <CheckBox IsChecked="{Binding Permissions[1]}" /> ... <CheckBox IsChecked="{Binding Permissions[5]}" />
They correctly get their values โโfrom this property, but changing the checkboxes does not cause this configuration tool to start.
I tried a very simple example, when one text block is attached to an element of a string array.
class TestArray { private string[] _nameArray = new string[3]; public TestArray() { _nameArray[1] = "test name"; } public string[] NameArray { get { return _nameArray; } set { _nameArray = value; } } }
Here's the user interface element:
<TextBox Text="{Binding NameArray[1], UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
Again, this TextBox gets the name from the binding just fine, but does not change the setter if I change it.
This may well be a question about heads and may arise due to a serious lack of understanding, so thanks for your patience!
source share