I have a DLL that I can use to pull the following information about individuals from a database:
-first name
-last name
-age
-name of task
-progress of that task (percentage)
I’d like to display that information with WPF (or other technology if that makes it much easier) in my Windows Application. Every 5 seconds, the application will use the DLL to get the new info and update the display. I want to display first name, last name, age etc in its own column, and the number of individuals will change over time.
I think I can figure out how to use the DLL in C#, but I’m having problems finding info about dynamically adding/removing controls from a window in WPF.
Any pointers are appreciated!
You probably want to use a design pattern such as MVVM(Model-View-ViewModel) to abstract DLL (which knows nothing about WPF) and your main application.
This MSDN article goes in to detail about how to use it to work with collections of data and use databinding to automatically update.