We have implemented a ToolbarPluginWpfUserControl that shows in response to a toolbar button click, and see that it is easily dismissed by clicking somewhere outside the the ToolbarPluginWpfUserControl.
However, we would like to be able to dismiss the user control ourselves, in response to the user taking some action the user control that should automatically dismiss it.
Trying a workaround like
Window.GetWindow(this).Close()
seems to exit SmartClient itself.