Hi,
You can create a async method to make the Button Collapsed:
Private Async Sub ButtonVisible()
Await btnFire.Visibility = Windows.UI.Xaml.Visibility.Collapsed
End Sub
And then edit your code like below:
Private Async Sub btnFire_Click(sender AsObject, e AsRoutedEventArgs) HandlesbtnFire.Click
Await ButtonVisible()
Await funWaitingForopponent()
End Sub
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
No comments:
Post a Comment