What is Attached property?



What is Attached property?..

Answer / anonymous

Attached properties are a programming concept introduced in
XAML whereby properties can be owned and defined by a
particular type, but set as attributes or property elements
on any element. The primary scenario that attached
properties are intended for is to enable child elements in
a markup structure to report information to a parent
element without requiring an extensively shared object
model across all elements. Conversely, attached properties
can be used by parent elements to report information to
child elements. For more information on the purpose of
attached properties and how to create your own attached
properties, see Attached Properties Overview.
Attached properties use a syntax that superficially
resembles property element syntax, in that you also specify
a typeName.propertyName combination. There are two
important differences:
· You can use the typeName.propertyName combination
even when setting an attached property through attribute
syntax. Attached properties are the only case where
qualifying the property name is a requirement in an
attribute syntax.
· You can also use property element syntax for
attached properties. However, for typical property element
syntax, the typeName you specify is the object element that
contains the property element. If you are referring to an
attached property, then the typeName is the class that
defines the attached property, not the containing object
element.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Microsoft Related AllOther Interview Questions

What is DS Proxy?

1 Answers   Deloitte,


Can you explain about browser link?

1 Answers  


What is Root ?

2 Answers   CMS,


Which language is used in microsoft?

1 Answers  


How do I permanently delete microsoft teams?

1 Answers  


Is there any other options to create a site definition for MOSS other than using onet.xml.

1 Answers   Zensar,


What are the different refactoring options in visual studio?

1 Answers  


how to create assembly?

1 Answers   Nth Solution,


While server generating the patches . that time server pull or push the resources?

1 Answers   HP,


How do I turn off microsoft telemetry compatibility?

1 Answers  


Do microsoft license keys expire?

1 Answers  


Why dint delete the index.bat file in system?

1 Answers  


Categories