I have a set of elements that need to populate a TextBox set on a page. Every time a user clicks on another element, I want to remove the old anchor from the last element and set new anchors for the current element. If I do not, a WinRT exception is thrown The object is immutable .
This code works when the first item is selected, but throws an exception when the next item is selected.
titleBinding.Source = selectedItem; TitleBox.SetBinding(TextBox.ValueProperty, _titleBinding);
source share