Accueil > Non classé > FocusHelper

FocusHelper

in wpf with mvvm is not easy top set focus at element with binding
FocusHelp is made for simplify this

and adding to a focusable control

and use like this
in your datacontext object

and code for setting focus

when the set focus is set to true, the UIElement receive Focus(); and the helper re-set Binding value to False

 

Categories: Non classé Tags:
  1. Pas encore de commentaire
  1. Pas encore de trackbacks