silverlight 양식에서 tab 키로 입력 키를 변경하려면 어떻게해야합니까? winforms에서 다음 코드를 사용하지만 실버 라이트에서 이것을 구현할 수 있는지 모르겠습니다!Silverlight 양식의 Tab 키에 Enter 키 변경
/// <summary>
/// Change Enter key To Tab Key
/// </summary>
/// <param name="msg"></param>
/// <param name="keyData"></param>
/// <returns></returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (msg.Msg == 256 && keyData == Keys.Enter)
{
// Execute an alternative action: here we tabulate in order to focus on the next control in the formular
if (ActiveControl.ToString().Contains("System.Windows.Forms.Button") ||
ActiveControl.ToString().Contains("DevComponents.DotNetBar.ButtonX"))
return base.ProcessCmdKey(ref msg, keyData);
SendKeys.Send("{TAB}");
// return true to stop any further interpretation of this key action
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
당신이 예상되는 결과는 코드 일 경우 알려 주시기 반환하는 방법을 보여주고 싶었다 내가 .. 아래의 예에서 모든 코드를 넣어하지 않았다 .. 감사 – MethodMan