当我尝试像这样将附加的属性集合添加到面板时;
<Grid x:Name="MainContent" Grid.Row="1">
<StackPanel x:Name="MainContentSp">
<do:AttachCollection.Col>
<do:AttachItem x="y"/>
<do:AttachItem x="z"/>
</do:AttachCollection.Col>
<TextBlock x:Name="tb1" Text="xx"/>
<TextBlock x:Name="tb2" Text="yy"/>
</StackPanel>
</Grid>
而是将其分配给网格...如何将其附加到面板?