Closed jgozner closed 5 years ago
This is actually expected as the DataTriggerBehavior
executes an action when the evaluated condition goes true, but it does not revert back to the previous value if the condition goes false; that will be up to you to add a second DataTriggerBehavior with the false evaluation action.
I have 2 DataTemplates. One for editing and one for previewing. The binding in these templates works great. They all start in preview template and when I click edit, it sets the selected questionId and then the appropriate item switches to the edit template. But when I click on another edit item the original one should go back to preview but it doesn't.
View
ViewModel
Outcome
After I click the first edit button
After I click the second edit button, the first item should revert back to preview mode.