silverlight - How to block input while WCF Asynchronous call runs? -
i'm working on application on windows phone, , using silverlight. have bugs user can press button twice, 2 wcf calls since action called 2 times.
the obvious solution disable button until call completes i'm wondering if there's more global solution wouldn't have implement every action. application uses 50 wcf methods tedious implement every single action/every screens.
there's situation users can click phone button while call running , start clicking on other buttons etc...
anyone know clean solution this?
simple solution: use boolean variable set true after first click , false when result server has arrived back. in click handler check value of variable, if true not call service again.
Comments
Post a Comment