protected BasePage(BaseViewModel viewModel) { mNativeEventsListener = new NativeEventsListner(); mViewModel = viewModel; mViewModel.Page = this; this.Loaded += (sender, e) => { this.DataContext = mViewModel; }; mNativeEventsListener.onAudioRoutingChanged += mNativeEventsListener_onAudioRoutingChanged; mNativeEventsListener.onRegistrationEvent += mNativeEventsListener_onRegistrationEvent; mNativeEventsListener.onStackEvent += mNativeEventsListener_onStackEvent; mNativeEventsListener.onAVCallEvent += mNativeEventsListener_onAVCallEvent; mNativeEventsListener.onHoldEvent += mNativeEventsListener_onHoldEvent; }