Windows Vista Forums
Vista Forums Home Join Vista Forums Donate 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

Does the dependency property inheritance mechanism only work between class and subclasses ?

Closed Thread
 
Thread Tools Display Modes
Old 11-29-2006   #1 (permalink)
Pon
Guest


 

Does the dependency property inheritance mechanism only work between class and subclasses ?

Does the dependency property inheritance mechanism only work between class
and subclasses ?
I mean if i want a dp for a class A object can inherit its value from a
class B parent (in the logical tree) object, does it necesseraly imply that
class A and class B are subclasses of the class that registers the dp ?
If not, how can I do that ?


Old 11-29-2006   #2 (permalink)
Douglas Stockwell
Guest


 

Re: Does the dependency property inheritance mechanism only work between class and subclasses ?

When you register the DP you can specify additional metadata. See the
Inherits property of FrameworkPropertyMetadata.

- Doug

"Pon" <pongla.public@laposte.net> wrote in message
news:uJtO1o5EHHA.2452@TK2MSFTNGP06.phx.gbl...
> Does the dependency property inheritance mechanism only work between class
> and subclasses ?
> I mean if i want a dp for a class A object can inherit its value from a
> class B parent (in the logical tree) object, does it necesseraly imply
> that class A and class B are subclasses of the class that registers the dp
> ?
> If not, how can I do that ?
>


Old 11-29-2006   #3 (permalink)
Douglas Stockwell
Guest


 

Re: Does the dependency property inheritance mechanism only work between class and subclasses ?

When you register the DP you can specify additional metadata. See the
Inherits property of FrameworkPropertyMetadata.

- Doug

"Pon" <pongla.public@laposte.net> wrote in message
news:uJtO1o5EHHA.2452@TK2MSFTNGP06.phx.gbl...
> Does the dependency property inheritance mechanism only work between class
> and subclasses ?
> I mean if i want a dp for a class A object can inherit its value from a
> class B parent (in the logical tree) object, does it necesseraly imply
> that class A and class B are subclasses of the class that registers the dp
> ?
> If not, how can I do that ?
>


Old 12-03-2006   #4 (permalink)
Pon
Guest


 

Re: Does the dependency property inheritance mechanism only work between class and subclasses ?

Thanx a lot.


"Douglas Stockwell" <doug@remove.11011.net> wrote in message
news:9EAE4705-07C9-48CF-ACDE-8191D169541F@microsoft.com...
> When you register the DP you can specify additional metadata. See the
> Inherits property of FrameworkPropertyMetadata.
>
> - Doug
>
> "Pon" <pongla.public@laposte.net> wrote in message
> news:uJtO1o5EHHA.2452@TK2MSFTNGP06.phx.gbl...
>> Does the dependency property inheritance mechanism only work between
>> class and subclasses ?
>> I mean if i want a dp for a class A object can inherit its value from a
>> class B parent (in the logical tree) object, does it necesseraly imply
>> that class A and class B are subclasses of the class that registers the
>> dp ?
>> If not, how can I do that ?
>>

>



Old 12-03-2006   #5 (permalink)
Pon
Guest


 

Re: Does the dependency property inheritance mechanism only work between class and subclasses ?

Thanx a lot.


"Douglas Stockwell" <doug@remove.11011.net> wrote in message
news:9EAE4705-07C9-48CF-ACDE-8191D169541F@microsoft.com...
> When you register the DP you can specify additional metadata. See the
> Inherits property of FrameworkPropertyMetadata.
>
> - Doug
>
> "Pon" <pongla.public@laposte.net> wrote in message
> news:uJtO1o5EHHA.2452@TK2MSFTNGP06.phx.gbl...
>> Does the dependency property inheritance mechanism only work between
>> class and subclasses ?
>> I mean if i want a dp for a class A object can inherit its value from a
>> class B parent (in the logical tree) object, does it necesseraly imply
>> that class A and class B are subclasses of the class that registers the
>> dp ?
>> If not, how can I do that ?
>>

>



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding to a custom dependency property diffeq Avalon 1 07-02-2007 01:42 PM
How can I alter the dependency property inheritance chain? Pascal Bourque Avalon 4 05-01-2006 10:08 AM
Custom Dependency Property in custom class hierarchy not workingcorrectly?! MueMeister Avalon 0 03-02-2006 06:19 PM
Trigger on user dependency property Griff Avalon 1 01-31-2006 06:59 AM
Dependency property not initialized in OnPropertyChanged? Jared Bienz Avalon 0 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