Windows Vista Forums

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


    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 ?





      My System SpecsSystem Spec

  2. #2


    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 ?
    >



      My System SpecsSystem Spec

  3. #3


    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 ?
    >>

    >




      My System SpecsSystem Spec

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding to a custom dependency property diffeq Avalon 1 02 Jul 2007
How can I alter the dependency property inheritance chain? Pascal Bourque Avalon 4 01 May 2006
Custom Dependency Property in custom class hierarchy not workingcorrectly?! MueMeister Avalon 0 02 Mar 2006
Trigger on user dependency property Griff Avalon 0 31 Jan 2006
Paragraph.Text? Should there be a dependency property as well? Jason Dolinger Avalon 8 31 Jan 2006