0

我想访问列表框的 ItemTemplate(datatemplate) 内的 StackPanel UIElement:

<ListBox x:Name="list">
<ListBox.ItemTemplate>
    <DataTemplate>
       <StackPanel x:Name="stk" >
           // some other stuffs
       </StackPanel>
    </DataTemplate>
   </ListBox.ItemTemplate>
</ListBox>

但如何?

4

0 回答 0