![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 ? |
| | #2 (permalink) |
| 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 ? > |
| | #3 (permalink) |
| 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 ? > |
| | #4 (permalink) |
| 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 ? >> > |
| | #5 (permalink) |
| 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 ? >> > |
| |
| |
![]() |
| 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 |