Specified Visual is already a child of another Visual or the root of a CompositionTarget
问题 WPF Visualizer Visual Tree canvas canvas.Children.Add poly |> ignore Specified Visual is already a child of another Visual or the root of a CompositionTarget. Don't think it's 1), not sure what 2) is? Using Visual Studio 2010, F# 2.0, WPF, ... not XAML 回答1: It's a bit hard to diagnose the problem without a relevant code sample, but maybe the problem is that you tried to add the same polygon to the canvas' children twice. This is the code I burped up to reproduce your error: type SimpleWindow(