如何使用ImpromptuInterface.MVVM创建多个事件绑定?

时间:2012-08-09 03:55:45

标签: wpf impromptu-interface

使用ImpromptuInterface.MVVM绑定到单个事件非常简单:

<DataGrid MVVM:Event.Bind="{Binding Events.RowEditEnding.To[DoRowEditEnding]}"
 ...

如何绑定同一DataGrid控件中的第二个事件?

1 个答案:

答案 0 :(得分:0)

您始终可以在To语句后链接另一个事件。这是一个例子,我用它来绑定来自一个对象的多个鼠标监听事件:

  <Grid Background="{Binding Color}" MVVM:Event.Bind="{Binding Events.MouseEnter.To[CenterMouseEnter].MouseLeave.To[MouseLeave].MouseLeftButtonDown.To[LeftButtonClick]}"