![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 ? |
My System Specs![]() |
| | #2 (permalink) |
| | 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 ? > |
My System Specs![]() |
| | #3 (permalink) |
| | 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 ? >> > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| WPF: Autogenerate a Private Dependency Property ? | .NET General | |||