Yes, attached properties allow to set a property value on the parent and the children inherit that value. On the other hand TextBox.IsEnabled
is not an attached property and so you cannot do what you want.
Perhaps it is possible to get what you want with some custom panels and/or custom attached properties programming.
However you could also get the same result using a Style
where you can also bind the IsEnabled property to your custom logic if you need.
<StackPanel Width="200" Height="50" >
<StackPanel.Resources>
<Style TargetType="TextBox">
<Setter Property="IsEnabled" Value="False" />
</Style>
</StackPanel.Resources>
<TextBox Text="one" />
<TextBox Text="two" />
</StackPanel>