private void ButtonMic_Click(object sender, RoutedEventArgs e) { if (ButtonMic.Content == FindResource("Mic_On")) { ButtonMic.Content = FindResource("Mic_Off"); _Tcpclient.Mute(); } else { ButtonMic.Content = FindResource("Mic_On"); _Tcpclient.unMute(); } }