Tutorial :How to stop queuing of operations on a control?



Question:

I have a tab control in the WPF application. Inside the tabcontrol each tab item consists of so many check boxes and buttons. Each check box when it is clicked, in background with a new thread, some operation is going. Till that completes tabcontrol's isHitTestVisible is made false, so that any other click should not happen. But now the problem is, that while the operation isn't complete nothing is happens, but the clicks are queued and after completion it they are executed. So how can I avoid queuing of operations. What is required is when an operation is running, if something is clicked it should not do anything. For this I have made ishittestvisible as false but now it is queuing up. So please help how to go ahead.

Thanks


Solution:1

Can't you just set the Enabled = false on the checkbox while the operation is processing?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »