コード例 #1
0
ファイル: frmEdit.xaml.cs プロジェクト: zexware/XKeyboard
 /// <summary>
 /// Occures when the form is loaded
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FrmEdit_Loaded(object sender, RoutedEventArgs e)
 {
     //Check if xFont object is initialized, if not: call Initialize.
     if (!xFont.IsInitialized())
     {
         xFont.InitKeys(Program.kManager, xFont.CharSet());
     }
     //Bind the listView with Font's Keys dictionary.
     listView.ItemsSource = xFont.Keys;  //Bind listview directly with Key sets
     txtAutofill.Text     = "";
     txtAuthor.Text       = xFont.Author;
     txtDescription.Text  = xFont.Description;
     txtName.Text         = xFont.Name;
     this.InvalidateVisual();
 }