XAML - What are Attached Properties?

By [)ia6l0 iii

Attached properties are attributes that are declared in other elements rather than the element itself. The best usage of attached properties is at positioning elements. The most common elements that are attached with these properties are the Grid and the DockPanel.

Attached properties are attributes that are declared in other elements rather than the element itself.

The best usage of attached properties is at positioning elements. The most common elements that are attached with these properties are the Grid and the DockPanel.

For e.g. Grid.Row is an attached property and is defined on the TextBlock element.
<Grid>
<TextBlock   Grid.Row="0 "></TextBlock>
</Grid>

Related FAQs

The following code sample shows you how.
To highlight alternate rows in a XamDataGrid use the ""HighlightAlternateRecords"" property.
The UIElement.Visibility enumeration provides the Visible, Collapsed and Hidden enumeration values.
The Line object derives from the Shape class and is defined by the X and Y attributes (X1, Y1, X2, and Y2)
You can use the "BasedOn" property of a Style to inherit another style on a style. See the following example.
Use the AllowGroupBy property in the FieldSettings of XamDataGrid to control the GroupBy operations in the UI.
XAML - What are Attached Properties?  (1408 Views)