I am calling Application.Current.Shutdown()
from a class that is bound to xaml windows with ObjectDataProvider
, but the application is not closing. Can anyone help me to understand why? My application is not closing completely after my main window is closed, it doesn't disappear from task manager's process list.
Try Environment.Exit(0)
instead