private void OnToggleVideo(object sender, RoutedEventArgs e) { //**************************************************************************************************************************************** // Toggle for Video On/Off during call. //**************************************************************************************************************************************** if (VideoOnToggled != null) { VideoOnToggled(BtnVideoOn.IsChecked ?? false); } if (_viewModel != null) { _viewModel.ToggleVideo(!BtnVideoOn.IsChecked ?? false); } SaveStates(); }