MultiSelectTreeView icon indicating copy to clipboard operation
MultiSelectTreeView copied to clipboard

Virtualization not working as intended

Open nielwestover opened this issue 4 years ago • 2 comments

Virtualization should work as simply as this, but it does not. Replace MultiSelectTreeView with TreeView in the code below and virtualization works seamlessly. What would it take to make this work? Thanks!

<Controls:MultiSelectTreeView
	x:Name="_treeView"
	Grid.Row="2"
	ItemsSource="{Binding VariableTree.Nodes}"
	VirtualizingStackPanel.IsVirtualizing="True">
	<Controls:MultiSelectTreeView.ItemsPanel>
		<ItemsPanelTemplate>
			<VirtualizingStackPanel />
		</ItemsPanelTemplate>
	</Controls:MultiSelectTreeView.ItemsPanel>
</Controls:MultiSelectTreeView>

nielwestover avatar Jan 21 '21 23:01 nielwestover

Virtualisation is a biest. And certainly anything but simple. (I did that in another project.) It's probably not possible with the current design of this. I replaced it with something else in a big application because of this. MultiSelectTreeView is not a TreeView, it's built from scratch. And I just based upon another project's work and haven't worked on this in a very long time. So don't expect a solution here.

ygoe avatar Jan 23 '21 14:01 ygoe

Thanks for taking the time to reply. I figured it was probably more trouble than it's worth. Also, I understand this project is not currently being worked on, but I put the issue here for others if they feel so inclined (worked before).

nielwestover avatar Jan 24 '21 02:01 nielwestover