[sl3] Binding sur un usercontrol
Bonjour,
J'ai créé un userControl, et je voudrais faire du binding sur une propriété de celui-ci.
Dans mon userControl, j'ai donc une propriété :
Code:
1 2 3 4 5 6
|
public string textBinding
{
get { return tb_test.Text; }
set { tb_test.Text = value; }
} |
tb_test est une textbox de test pour tester le binding.
Dans le xaml de la page ou j'appelle mon userControl :
Code:
1 2
|
<local:validTextbox textBinding="{Binding tb10}" /> |
Et quand je lance mon application, une erreur apparait :
Code:
1 2
|
AG_E_PARSER_BAD_PROPERTY_VALUE |
Je sais pas si je fais la bonne méthode, sinon le binding de test tb10 marche bien,
car quand je fais un test simple dans ma page, cela marche nickel
Code:
1 2
|
<TextBlock Text="{Binding tb10}" /> |
Voila, si quelqu'un sait d'ou vient mon erreur :)
Merci d'avance