Forum Xamarin.iOS

I need to iterate all items of Outline view.

I am using outline view to manages objects(items) into tree structure. Now i want to traverse the outline view tree structure. How can iterate the outline view tree structure.

Best Answers

Answers

  • priyankurchauhanpriyankurchauhan Member ✭✭

    I am using data source. I am a QT and C++ developer and C# and Xamarin.Mac is new for me. As mentioned in previous method I am arranging item into a tree structure. For this I am using Outline view and data source. I want to know its okay to create a tree structure using outline view or need to change the approach to create the tree.

    You can download the attached tree image to see the tree structure, i have to implement.

  • YuriKuznetsovYuriKuznetsov USMember ✭✭✭

    NSOutlineView is created for tree structure. When you create your own DataSource you should create your own Delegate

    On my GitHub you will find example of NSOutlineView, I think you will find it very useful
    https://github.com/8Tesla8/Xamarin-Mac-samples

    If you new in Xamarin.Mac you should read documentation
    https://docs.microsoft.com/en-us/xamarin/mac/user-interface/outline-view

  • qtsoftqtsoft Member ✭✭

    Thanks.

    I am following the Xamarin-Mac-samples. I more thing I want to know, If I use NSArrayController/NSTreeController instead of DataSource then no need to create own Delegate.

  • priyankurchauhanpriyankurchauhan Member ✭✭

    I have the Xamarin-Mac-samples. Kindly tell me if I use NSArrayController or NSTreeController instead of DataSource then no need to create its own Delegate.

Sign In or Register to comment.