Accueil > Non classé > Binding for non hierarchical object

Binding for non hierarchical object

If you have an object who is not in herarchical tree, like converter, you cannot bind something even you have define DependyProperty on it.

first you must prepare you converter for having DependencyProperty by override DependencyObject

then create DependencyProperties

and finally set binding in xaml

as the converter is not in herarchical tree i cannot using binding with ElementName= but i can use x:reference like this

 

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