2010-02-08 69 views
1

我正在從Siverlight中的面板派生布局控制。我希望能夠在面板中設置Tab鍵行爲。我需要的是像Control類的TabNavigation屬性。例如,如果我設置:控制面板內的TabNavigation

myCustomPanel.TabNavigation = KeyboardNavigationMode.Cycle

黏合只能通過myCustomPanel的子元素移動焦點。有沒有辦法做到這一點?

回答

0

我知道這是非常晚的答案,但也許對研究人員有幫助。

我有ParentCustomPanel,此面板包含許多ChildCustomPanel。 ChildCustomPanel有很多ControlsTextBox,CheckBox等...)。 我的問題是我設置TabNavigation爲ParentCustomPaneland它在ParentCustomPanel內工作。 現在我設置TabNavigationParentCustomPanel它工作。

ParentCustomPanel.TabNavigation = KeyboardNavigationMode.Cycle 

謝謝!