views:

19

answers:

0

Hi Experts,

I am trying to set focus on my user control using attached property that is exposing a dependency property "IsFocus" in my user control and binding it to a property in my Window. Although this works fine for all controls in the window and the first tab, i am not able to set focus on controls which is on other tabs. I even got the tab in focus on which my control is and then tried to get the focus but in vain. What am i missing here? Or is that wpf tab does not allow focus of controls using attached property?

Please help!

Thanks in advance!

Regards,

Samar