Accueil > Non classé > FallbackValue for Command

FallbackValue for Command

When you try to connect an MVVM command, it must be better to have a fallbackvalue if binding not release
a null static command return false is the solution for showed that the binding cannot be set (and not allow command)

for sample if i have the command : CloseCommand in Selected in my MVVM
when selected is set to null the binding not released
the fallbackvalue is set in this case

I use a static command

and i use like this

 

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