2010-02-08 71 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 

谢谢!