I've written some interop code that utilizes user32.dll to enumerate the windows and add them to a List. WindowData is a local INotifyPropertyChanged class that stores window hWnd, title, Position, Size, executable path, app icon, etc.
Is there a way that I could effectively "bind" to changes of the window title, position, size, etc? I wouldn't want to have to use a DispatcherTimer to update the information every second. I'd prefer it if I could use a simple event handler or callback or something.
Anyone have any ideas?