0
En utilisant Silverlight, nous cherchons à déplacer le focus dans une zone de texte. Comment utiliser mvvm-light pour déclencher gotfocus? La vue contient:Comment utiliser mvvm-light pour déclencher gotfocus
<TextBox Margin="4,4,0,0" Text="{Binding Path=SearchOID, Mode=TwoWay}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="GotFocus">
<cmd:EventToCommand Command="{Binding GotFocusCommand, Mode=TwoWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</TextBox>
- Comment regarder le ViewModel?
- Comment déclencher cela à partir du ViewModel?