TreeView项目拉伸

时间:2018-11-19 14:25:58

标签: .net wpf

我有代码:

 <TreeView Name="fileList" HorizontalContentAlignment="Stretch">   
     <TreeViewItem >
         <Grid Background="Aquamarine" HorizontalAlignment="Stretch">
             <TextBlock Text="some text"/>
         </Grid>
     </TreeViewItem>
 </TreeView>

带有Grid的{​​{1}}不会伸展。我该如何伸展呢? https://leecampbell.com/2009/01/14/horizontal-stretch-on-treeviewitems/解决方案不起作用

0 个答案:

没有答案