(Lviv community of .NET developers)

Унаслідувані (Inherit) проперті

April 18, 2008 07:32 by RredCat

Працюючи з WPF, мене сильно цікавило застуосування унаслідуваних (Inherits) пропертей (особливо в світлі того наскільки "дорогі" біндінги (Binding)),


та до мого сорому, мої знання далі унаслідуваних атач пропертей не заходили (RegisterAttached). Після написання кількох тестових самплів, в яких я намагався заюзати "всю силу" унаслідуваних пропертей, зрозумів - моєї фантазії не вистачить, щоб вгадати як ними користуватись. Довелось пошукати в МСДНі.

Там я знайшов гарний опис а-ля - "як круто їх юзати", а в кінці мальньку нотатку:


Note:

Although property value inheritance might appear to work for nonattached dependency properties, the inheritance behavior for a nonattached property through certain element boundaries in the run-time tree is undefined. Always use RegisterAttached to register properties where you specify Inherits in the metadata.

 

Отож не дивно що в мене вони не запрацювали. Детальніше про ці проперті можна почитати тут

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories: .NET | WinFx
Actions: Permalink | Comments (2) | RSSRSS comment feed

Comments

October 23. 2009 05:01

I reallylove your blog and it gives me a lot of ideas on the main line.

canadian pharmacy cialis

May 14. 2010 15:48

I'm very thrilled to discover your blog I were looking for hours on end just for this info concerning development. It isn't everyday you see this top quality of information online I cannot thank you sufficiently.

Portugal

Add comment


(Will show your Gravatar icon)