2010-04-18 64 views

回答

-2

我還沒有嘗試過爲Border S,但與WPF ContentControl,我覺得我必須設置IsTabStopIsEnabledtrue讓它能夠接受焦點。

+0

'IstabStop'在Control中定義,而Border不是從Control派生的。 – 2010-04-18 22:53:13

2

首先,確保你有Border.Focusable = True。之後,只需調用Border.Focus(),你應該很好。

+1

不確定你爲什麼被低估。這對我來說非常合適。 – samuelesque 2014-03-07 19:56:05