Hi,
I have a TreeView inside a XamOutlookBar. But, the TreeView's default expand/collapse icon is invisible. The functionality is there, I can click on the blank area of the icon and the list will expand/collapse.
How can I make the expand/collapse icon to be visible?
Refer to the image below, by default, there should be an expand/collapse arrow icon at the left of each group (Group 1, Group 1a, Group 1b).
Attached is my xaml code, the treeview and xamoutlookbar items bind from a datacontext from the viewmodel.
Thanks,
Vincent
Hello Vincent,
Thank you for your post. I have been looking into it and the code you have provided and I can suggest you use our XamDataTree control instead of TreeView, where the expansion indicator is visible by deafult. Please let me know if you need further assistance on this matter.
Looking forward for your reply.
How do I add button as child item in xamDataTree? As you can see in my code, my child item is a button.
Thanks.
Hello,
The XamDataTree also has an ItemTemplate Property as the TreeView. Also in the FeatureBrowser under xamDataTree / Editing and Selection / Activation section you can find a sample showing how to apply ItemTemplate.
Hope this helps you.
Hello ChunYen,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks, it helps :)
I have created a sample project for you with the functionality you want. Basically I handled the XamDataTreeNodeControl’s Loaded event in the App.xaml file and added the handler in the App.xaml.cs file, where I set the Node’s IsExpanded Property to true. Please let me know if this helps you or you need further assistance on this matter.
Sorry, one more question.
How do I expand all node on first load by using xaml, instead of code behind.
Thank you for your help :)