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 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.
Looking forward for your reply.
Sorry, one more question.
How do I expand all node on first load by using xaml, instead of code behind.
Thanks.
Thank you for your help :)