Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Custom Dependency Property in custom class hierarchy not workingcorrectly?!

 
 
Old 03-02-2006   #1 (permalink)
MueMeister


 
 

Custom Dependency Property in custom class hierarchy not workingcorrectly?!

Hi everybody,

I got a question on DPs. I want to provide 3 kinds of custom panels.
Each panel has functionality and properties which are in common so I
decided to implement a class hierarchy. On the base class (BasePanel)
I register two dependency properties and implement the concerning CLR
accessors. Now, I want to use a DataBinding in XAML on one of the
derived classes. I want to bind to an object of, let's say,
SpecialPanel1 --> there I want to bind to a DP which was introduced in
the base class. There are no compiler errors and the app is runniung but
nothing happens on the value of the DP:

BasePanel (with custom DPs)
|
|
--------------------------- .......
| |
SpecialPanel1 SpecialPanel2 ....... a.s.o.

in XAML:

<SpecialPanel1 DP_inherited_from_BasePanel={Binding .....} />

The value of DP_inherited_from_BasePanel is not touched! What's wrong?
I mean, Control also declares DPs which are used by derived classes ?!

Thanks a lot.
Chris

My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46