void mNativeEventsListener_onAudioRoutingChanged(object sender, AudioRoutingEventArgs e) { this.Dispatcher.BeginInvoke((System.Threading.ThreadStart) delegate { if (mViewModel is CallStatusViewModel) { (mViewModel as CallStatusViewModel).UpdateAudioButtons(); } }); }
void mNativeEventsListener_onAudioRoutingChanged(object sender, AudioRoutingEventArgs e) { this.Dispatcher.BeginInvoke((System.Threading.ThreadStart)delegate { if (mViewModel is CallStatusViewModel) { (mViewModel as CallStatusViewModel).UpdateAudioButtons(); } }); }