diff --git a/RimeControl/MainWindow.xaml b/RimeControl/MainWindow.xaml
index 1cd81b7..8707a08 100644
--- a/RimeControl/MainWindow.xaml
+++ b/RimeControl/MainWindow.xaml
@@ -316,23 +316,26 @@
+
+ CellEditEnding="DataGridSchema_CellEditEnding" SelectionChanged="DataGridSchema_SelectionChanged" SelectionMode="Single">
+
-
+
-
-
+
+ -->
+
+
-
+
+
+
diff --git a/RimeControl/MainWindow.xaml.cs b/RimeControl/MainWindow.xaml.cs
index b9ba89e..73d123a 100644
--- a/RimeControl/MainWindow.xaml.cs
+++ b/RimeControl/MainWindow.xaml.cs
@@ -1863,5 +1863,17 @@ private void Window_Closing(object sender, CancelEventArgs e)
}
}
+
+ private void DataGridSchema_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ Schema selectedSchema = DataGridSchema.SelectedItems[0] as Schema;
+
+ string strText = "作者:"+ Environment.NewLine;
+ strText += selectedSchema.author ;
+ strText += Environment.NewLine + "描述:"+ Environment.NewLine;
+ strText += selectedSchema.description;
+
+ TbSchameInfo.Text = strText;
+ }
}
}