简体   繁体   中英

WPF vb.net Download Button without interruptions

I have pageA which has 2 buttons(button1 &button2) that navigate via frame1 to pageB(via button1) & pageC(via button2) (respectfully). On pageC( via button2) I have a download button that downloads from remote source.

What is the best practice/way to make sure that when downloadbutton is clicked and downloading (in PageC), that it doesn't get interrupted if button1 on pageA is clicked (maybe a message warning or disable button ?).

Does this make sense? Any help would be great!

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