I was looking for the best approach to find out the if my users are idle in my WPF application. Currently, I take this idle time from operating system, and if they minimize
public MainWindow() { InitializeComponent(); ComponentDispatcher.ThreadIdle += new System.EventHandler(ComponentDispatcher_ThreadIdle); } void ComponentDispatcher_ThreadIdle(object sender, EventArgs e) { //do your idle stuff here }