Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data binding in Page....
Message
De
22/05/2009 06:58:15
 
 
À
21/05/2009 12:45:06
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01401352
Message ID:
01401519
Vues:
30
>Hi,
>
>I had a WPF window defined in code with a DependencyProperty set up. In a XAML window sub-classed from this I have controls bound two-way to the DP. This works.
>
>I changed the whole thing to be Page based (i.e. Page derived class with the same code as in the Window class, subclassed XAML page with the same Bindings). This compiles fine, shows no binding failures in the Output window - but the bindings don't work!
>
>Anyone have a clue why this may be?

It's because you forget to change the ownertype parameter from Window to Page in the DependencyProperty.Register call, you dummy. Took me an hour to find this!!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform