I have a canvas and the Border in it. Now I want to focus on this border.Can someone please tell me how to do this?
First make sure you have Border.Focusable = True. After that, just call Border.Focus () and you will be well off.
I have not tried it for Border s, but with WPF ContentControl , I think I had to set IsTabStop and IsEnabled to true so that it could take focus.
Border
ContentControl
IsTabStop
IsEnabled
true