SettingsTreeViewUserControl: fix event handling