0
저는 현재 Caliburn.Micro를 사용하는 WPF 프로젝트에서 작업 중이며 이벤트를 UserControl
에 바인딩하려고합니다. Window
이 열려 있고 사용자가 아무 버튼이나 누르면 시작됩니다.KeyDown 이벤트를 사용자 정의 컨트롤에 바인딩
<UserControl x:Class="Test.Views.AppView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:cal="http://www.caliburnproject.org"
cal:Message.Attach="[Event KeyDown] = [TestMethod($executionContext)]" />
불행히도이 코드는 작동하지 않습니다. 을 UserControl
에 바인딩 할 수 있으며 TextBox
또는 Button
과 같은 특정 컨트롤에 바인딩 할 수 있습니까?
이 링크가 도움이되는지 확인 - http://stackoverflow.com/questions/16719496/caliburn-micro-enter-key-event – Vinkal