wpf - How can I set the keyboard focus to the content of a ContentPresenter when it changes? -
I have a content control in my view, which is the current item of my Voododal property dated in the property, exposed through current objects The items to be made have their own dataset.
When a change to the CurrentItem property occurs, the appropriate DATA template is displayed for that item, as it should be. However, I can not find a way to set the keyboard focus on the content of the Datamapplet
Even if I manually set the keyboard focus on the Datatomplate, if the current item property changes (and a new template
How do I set keyboard focus for content?
I believe that You can use the event on your own control or content page. It can be used at any time to create content / content templates / etc. Reversal will end.
Alternatively, you can get a square from the content control, then, etc. You can override the methods, then you have to find the view tree below and set the focus You may have to use Dispatcher to delay the focus setting code.
Comments
Post a Comment