2010-11-21 4 views
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> 
  1. Comment regarder le ViewModel?
  2. Comment déclencher cela à partir du ViewModel?

Répondre

Questions connexes