Beispiel #1
0
 /// <summary>
 /// 语言切换事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void SwitchLang(object sender, RoutedEventArgs e)
 {
     foreach (MenuItem item in menuItemLanguages.Items)
     {
         item.IsChecked = false;
     }
     System.Windows.Controls.MenuItem mi = sender as System.Windows.Controls.MenuItem;
     mi.IsChecked = true;
     LocaleUtil.SwitchLanguage(this, mi.Tag.ToString());
 }