Waiting on ui thread can easily cause deadlock in message loop. At this point i would just cancel setting appbar and add appbar refresh at the end of RefreshGame method.