I just want to know if the data binding will respond to events with modified source code after the window is closed. And if so, how to free all data bindings.
All I can find on MSDN is the sentence for the Unloaded event: "When Unloaded is processed and processed, the element that is the parent of the event source (as defined by the Parent property) or any given element up in the logical or visual trees may already be not set, which means that data binding, resource references, and styles cannot be set to their normal or last known run-time value. "
But he says “can’t”, so I still don’t know what it will be or not. And he also says that the Unloaded event will not be raised if the application closes.
I found BindingOperation.ClearAllBindings (). But only one object seems obvious. To clear everything, do I have to recursively clear the visual tree or logical tree?
source
share