简体   繁体   中英

WPF Download File Applications for multiple files

Firstly let me tell you that I searched in the internet, but could not get any help. I need to develop an application where I need to show currently how many files are downloading and every files name, progress along with we have the option to cancel the download whenever we want. For better understanding I have attached an image the overall UI design. But I have a doubt that how at runtime I will keep appending files in the download Window? Suppose I am downloading a file, now after sometime i will start another file to download. How will I add that Download in the same window. Any ideas and codes and help would be a great help. 下载窗口

The data I will be getting from a cache in our application. the file name and how much bytes downloaded and total size everything is stored in the cache, but run time keep adding/removing the download Window is an issue. Help please

I would use an ObservableCollection to store the download information (file name, progress, etc.), then create a container (eg ListView) with an DataTemplate and then bind the collection to the control.

When you want add another file to the downloades files list, you simply add it to the ObservableCollection and it will automatically show up on the UI.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM