What are Attached Properties in XAML?


This content was proof-read by Grammarly. You can Try Grammary for FREE

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 bloggers like this: