积极答复者
急!版主请进,listview无法触发编辑完毕的事件,MSDN的源码

问题
-
源码下载地址:http://msdn.microsoft.com/zh-cn/library/ms771277(VS.90).aspx
在listview中能编辑某一列的数据,但是怎么获取编辑完成的事件呢?我在EditBox中的事件全部不生效,郁闷哦
答案
-
在EditBox.CS 中
/// <summary>
/// If an EditBox loses focus while it is in editing mode,
/// the EditBox mode switches to normal mode.
/// </summary>
private void OnTextBoxLostKeyboardFocus(object sender,
KeyboardFocusChangedEventArgs e)
{
IsEditing = false;
}该方法被调用时,就是编辑完毕.
- 已标记为答案 Allen Chen - MSFTModerator 2010年7月26日 8:29
全部回复
-
在EditBox.CS 中
/// <summary>
/// If an EditBox loses focus while it is in editing mode,
/// the EditBox mode switches to normal mode.
/// </summary>
private void OnTextBoxLostKeyboardFocus(object sender,
KeyboardFocusChangedEventArgs e)
{
IsEditing = false;
}该方法被调用时,就是编辑完毕.
- 已标记为答案 Allen Chen - MSFTModerator 2010年7月26日 8:29