AttachedEventsToCommand

可以使用handycontrol里的类,behavior里的不可以使用,因为它只支持RoutedEvent

<hc:Interaction.Triggers>
    <hc:RoutedEventTrigger RoutedEvent="{x:Static Validation.ErrorEvent}">
        <hc:EventToCommand Command="{Binding OnValidationErrorOccurredCommand}" PassEventArgsToCommand="True" />
    </hc:RoutedEventTrigger>
</hc:Interaction.Triggers>
posted @ 2022-10-24 11:37  潜谷先生  阅读(43)  评论(0)    收藏  举报