i:EventTrigger 的使用

                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="PreviewMouseDown">
                        <i:InvokeCommandAction Command="{Binding Path=EditAs.EditCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:DataLayoutItemEx}}}"/>
                    </i:EventTrigger>
                    <i:EventTrigger EventName="MouseDoubleClick">
                        <i:InvokeCommandAction Command="{Binding Path=EditAs.OpenCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:DataLayoutItemEx}}}" CommandParameter="{Binding ElementName=PART_Editor, Path=EditValue}"/>
                    </i:EventTrigger>
                </i:Interaction.Triggers>

 

posted @ 2015-01-08 10:28  Alf7  阅读(1576)  评论(0编辑  收藏  举报