What is Attached property?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you uninstall microsoft edge?

562


What the difference between the SoapUi utility and the VS2008 test functionality used for the Web-service testing?

2810


what is the difference between IE5 and IE6

2231


Shortcut keys for debugging in visual studio?

605


How do I sign in without a microsoft account?

529






How does xaml relate to other web service standards? : xaml

517


How to generate sequence diagrams in visual studio?

555


What is Ethernet Address ?

1620


What is Serial Poart ?

1580


What is the microsoft exchange server address?

561


What is microsoft visual studio used for?

592


What does microsoft blend do?

554


Explain session variables?

584


1.How can data be developed on Microsoft excel 2. what is the importance of Microsoft Excel to the society

1373


What replaced microsoft paint?

550