Hello-
I was looking for guidance for best practices in adding and removing methods to event handlers in a dockable WPF panel. My project is based off of Dale’s sample wpf panel project.
I have a properties panel in my plug-in that looks for currently selected objects and returns various values. It’s easy enough to add methods when the user control initializes, but what I’d like to do is ensure that it’s only listening for selection changes when the panel is visible. Any recommendations as to where best locate the add/remove methods to the event handlers to achieve this?
thanks in advance,
Dave