2012-08-01 50 views

回答

2

使用FocusManager.FocusedElement象下面這樣:

<Window x:Class="UI.Views.MyView" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     FocusManager.FocusedElement="{Binding ElementName=txtSearch}"> 
    </Window> 
+0

光標應該着眼於文本框的文本時,在文本框改變。 – Murugan 2012-08-01 18:49:35