General information
Category:
Windows Presentation Foundation (WPF)
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only