locked
Message Dialogs and XInput Control

    Question

  • Hello,

    I have several message dialogs in my app, but I'm unable to get them to be closed when using the Xinput APIs and the Xbox360 controllers. Are there any samples or APIs for this functionality?

    Currently I have it so that the user can control the dialogs, but when I input my response none of the dialogs close. The app functions correctly behind the dialog, but the dialog doesn't close. Is there a call to close the current opened dialog?

    Thanks.


    • Edited by DLAlex Thursday, November 8, 2012 9:34 PM
    Thursday, November 8, 2012 9:33 PM

Answers

  • You should be able to cancel the MessageDialog if you provide a cancellation token to the ShowAsync() call.

    See Cancellation in the PPL .

    --Rob

    • Marked as answer by DLAlex Monday, November 12, 2012 8:50 PM
    Friday, November 9, 2012 10:09 PM
    Owner

All replies

  • You should be able to cancel the MessageDialog if you provide a cancellation token to the ShowAsync() call.

    See Cancellation in the PPL .

    --Rob

    • Marked as answer by DLAlex Monday, November 12, 2012 8:50 PM
    Friday, November 9, 2012 10:09 PM
    Owner
  • Thanks, that article helped immensely.
    Monday, November 12, 2012 8:50 PM