Search code examples
c#xamluwp

Can you update the content (text) property of a ContentDialog?


I need to update the text inside a ContentDialog after it's been displayed.

Is this thing possible ?

Thanks.


Solution

  • Is this thing possible ?

    No, calling ShowAsync of the ContentDialog returns a Task that doesn't complete until the dialog has been closed by the user.

    If you have a requirement to change the text in the dialog after it has been displayed, you should consider using your own custom dialog window with data bindings instead of using the ContentDialog API.