What are Attached Properties in XAML?

The Attached Properties in XAML are the properties which can be used by other classes. A simple example of the attached properties is the Grid.Row property in the Stack Panel which defines where in the grid, the stack panel will be displayed in the Grid.

What are Attached Properties in XAML ?

<Grid x:Name="LayoutRoot" Background="Transparent">
 <Grid.RowDefinitions>
  <RowDefinition Height="Auto" />
  <RowDefinition Height="*" />
 </Grid.RowDefinitions>
 <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
 </StackPanel>
</Grid>
%d