Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data binding in Page....
Message
From
22/05/2009 06:58:15
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01401352
Message ID:
01401519
Views:
31
>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!!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform