zhuliwangfen 你好
因为在Silverlight中Alt键事件处理有些特别,你可以通过以下代码来实现输入换行的功能:
- public MainPage()
- {
- InitializeComponent();
- gcSpreadSheet1.View.KeyMap.Remove(new GrapeCity.Windows.SpreadSheet.UI.KeyStroke(Key.Enter,ModifierKeys.Alt));
- gcSpreadSheet1.View.KeyMap.Add(new GrapeCity.Windows.SpreadSheet.UI.KeyStroke(Key.Enter, ModifierKeys.Control), SpreadActions.InputNewLine);
- }
复制代码 |