Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Custom Dependency Property in custom class hierarchy not workingcorrectly?!

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-02-2006   #1 (permalink)
MueMeister
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 azerty Avalon 0 04-14-2008 06:14 AM
Binding to a custom dependency property diffeq Avalon 1 07-02-2007 01:42 PM
Binding to custom class, no updates back to UI Debbus Avalon 0 03-16-2007 02:26 PM
Does the dependency property inheritance mechanism only work between class and subclasses ? Pon Avalon 4 12-03-2006 04:39 AM
Custom Dependency Property and Binding CSkinner Avalon 3 01-10-2006 03:53 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51