0
wpf의 코드 숨김에서 ViewModel의 TextBlock RoutedEvents를 실행하는 방법. 알려 주시면 wpf 코드로 라우팅 이벤트를 묶는 방법을 알려드립니다. 감사합니다TextBlock의 라우팅 된 이벤트
wpf의 코드 숨김에서 ViewModel의 TextBlock RoutedEvents를 실행하는 방법. 알려 주시면 wpf 코드로 라우팅 이벤트를 묶는 방법을 알려드립니다. 감사합니다TextBlock의 라우팅 된 이벤트
글쎄 사용이 (당신은 실버 라이트 System.Windows.Interactivity이 필요합니다,하지만 난 그것을 WPF에서 비슷한 용의자) :
xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
<TextBlock Text="{Binding InputValue, Mode=TwoWay}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="GotFocus">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding InputValueGotFocusCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</TextBlock>
당신은 혼합이 쉽게 할 수
당신이 할 수 좀 더 구체적으로? 당신 질문은 모호한 것 같습니다. ViewModel에서 라우트 된 이벤트를 트리거하려고하거나 라우팅 된 이벤트를 뷰 모델에 바인드 하시겠습니까? 어떤 코드 또는 의사 코드라도 도움이됩니다. –