如何绑定到所选TreeViewItem的Datacontext?

时间:2018-05-15 07:28:17

标签: wpf xaml treeview datacontext

我有 https://stackoverflow.com/questions/41738362/how-to-include-pagination-in-a-wordpress-custom-post-type-query?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa 这样:

TreeView

我尝试将不同控件的<controls:TreeView x:Name="treeView"/> 绑定到所选Datacontext的{​​{1}}。我该怎么办呢?

我试过了:

Datacontext

TreeViewItem

0 个答案:

没有答案