How to expand many nodes

2 posts, 0 answers
  1. koala
    koala avatar
    6 posts
    Member since:
    Apr 2015

    Posted 18 Apr 2016 Link to this post


    I have the following TreeListView.

      AutoExpandItems="{Binding IsToggleExpand}"
      IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"

      ItemsSource="{Binding FolderDataView}"
      SelectedItem="{Binding SelectedItem}"

    I use IsExpanded/IsExpandedBinding to open a node and I use IsToggleExpand/AutoExpandItems to open all nodes. Everything works correct.

    If I reopen my Tree I have to expand all nodes of the last session. So I store the expand state when closing and use IsExpanded to open the nodes when opening. If I open many nodes it is very slow (flickering). And the ScrollViewer does not recalc its correct size. Perhaps the UI refreshes too often.

    If I expand all nodes with IsToggleExpand/AutoExpandItems it is much faster and the ScrollViewer resizes correctly.

    How can I improve the user experience and the performance when opening many nodes?
  2. koala
    koala avatar
    6 posts
    Member since:
    Apr 2015

    Posted 18 Apr 2016 in reply to koala Link to this post

    Dear Admin,

    could you please delete this?

    Please Do not answer here!

    Please look here:
Back to Top