
Hi there! We have a TreeListBox that has items in it that are editable via a "slow/single tap" in the row. This works GREAT with EditableContentControl when there is only a single value (i.e only a name). However, in our other instance we have a name and a number field that need to be editable. From what I'm seeing, EditableContentControl and the [Get/Set]IsEditing don't allow us to know which EditableContentControl the user has clicked on so we can set that specific property to true.
Our viewmodels have an IsRenumbering and a IsRenaming property in this instance, instead of a single, bindable property. This also seems to make it impossible for us to set the IsEditingPath since that is a string.
Thanks for any help in figuring this use case out. Am I missing something?
FYI: My currently "working" (via lots of duct tape) solution is to cache the last clicked EditableContentControl through a behavior. When the IsEditing property is being set in the ItemAdapter we query the attached property on the behavior and then set IsEditing on the control (which sets it in the viewmodel). This property then has to react to IsRenaming/IsRenumbering property changed events and aggregate back up to the IsEditing property. I also have the IsEditingPath set to "IsEditing"... While this works, you can see how brittle it is.
I'm really wondering if there is a better way to do this that I've missed.
[Modified 1 year ago]