首页 > 其他分享 >AttachedEventsToCommand

AttachedEventsToCommand

时间:2022-10-24 11:44:26浏览次数:57  
标签:handycontrol 可以 RoutedEvent behavior 使用 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>

标签:handycontrol,可以,RoutedEvent,behavior,使用,AttachedEventsToCommand
From: https://www.cnblogs.com/baibaisheng/p/16820985.html

相关文章