简体   繁体   中英

Arrow is missing from the treeview/treeviewitem

I'm having a strange situation I have used two TreeViews in two different WPF applications. In both the same block of code/tag been used:

<TreeView Grid.ColumnSpan="1" Grid.RowSpan="2" Margin="0,0,0,0" Name="treeView1">
      <TreeViewItem ItemsSource="{Binding Path=SubFolder, Source={StaticResource RootFolderDataProvider}}" Header="root" />
</TreeView>

In one of them the "root" shown next to its arrow, however, in the other one, only "root" is displayed and no arrow icon.

Can somebody give me a hint?

Thanks. 在此处输入图片说明

If no arrow is displayed then that node doesn't have any children. If you feel that children exists and it is not displayed, then there is some problem in your TreeView Biding

Refer the following link for more details about treeView

TreeView, HierarchicalDataTemplate and recursive Data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM