문제

How can I do that;

Click Enter in TextBoxes for Runnig Button in Winrt?

I remember that textbox's AcceptReturn property doing it but for doing it we were changing forms' AcceptButton property in System.Forms but there is no property named AcceptButton.

Thank you.

도움이 되었습니까?

해결책

I don't think there is one property out of the box, but I will probably add an attached property or two to the WinRT XAML Toolkit to add that feature. For now you can either do the same thing - implement an attached property that will do it for you or simply listen for key events on the form manually and handle the Enter key the same way you handle the button.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top