Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing WPF Form Elements from inside async Task<T>
#3
This actually helped confirm something I was suspecting before lunch today.  I though perhaps once the OK/Cancel button was pressed access to the out vars would disappear.  So, I worked around this whole issue by adding a Button instead of ok/cancel that calls a HandleLicense function with WBButtonClickArgs...  then once the processing is completed I call args.Window.Close to clear out the input dialog.  It works now.

Unfortunately I'm stuck with a few async methods because I'm making websocket calls to AWS for licensing and that all requires async/await Sad


Messages In This Thread
RE: Accessing WPF Form Elements from inside async Task<T> - by netdude78 - 05-16-2022, 07:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)