使用silverlight,我们希望将焦点移到文本框中。如何使用mvvm触发焦点?该视图包括:
<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>触发这一点?
发布于 2010-11-24 20:48:41
最后使用了一个TriggerAction,非常类似于:http://www.codeproject.com/Articles/42988/Silverlight-Behaviors-and-Triggers-Making-a-Trigge.aspx
https://stackoverflow.com/questions/4240289
复制相似问题