setfocus

FocusManager.FocusedElement working sometimes on same window

I'm trying to give focus to a DevExpress GridControl on display of the window, so that when the window displays, the user is just able to press arrow keys to navigate the list. I'm using FocusManager.FocusedElement to focus on the GridControls TableView when the page loads, and sometimes it works, but othertimes, I found the usercontrol ...

WPF Focus Tab Control Item on load

Hi, I have a tab control with several tabItems. I have used the FocusManager.FocusedElement="{Binding ElementName=CustomerTab}" to select my tab, but the tab is not showing the dotted border it normally does when using the tab keys. How can I set this? If I use my arrow keys, the focus does move over to the 2nd tab item. Thanks ...